mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
6c49572ee4
Summary: We had reports from the Community of the RN CI running on forks and causing high costs and bills for them This change should make sure that the most impactful jobs only runs on the React Native CI and not on forks. ## Changelog: [Internal] - Pull Request resolved: https://github.com/facebook/react-native/pull/53707 Test Plan: GHA Reviewed By: cortinico Differential Revision: D82107313 Pulled By: cipolleschi fbshipit-source-id: ff7f418344975e7bb8306a6356d774c26bea3db1
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: Validate DotSlash Artifacts
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- packages/debugger-shell/bin/react-native-devtools
|
|
- "scripts/releases/**"
|
|
- package.json
|
|
- yarn.lock
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- packages/debugger-shell/bin/react-native-devtools
|
|
- "scripts/releases/**"
|
|
- package.json
|
|
- yarn.lock
|
|
# Same time as the nightly build: 2:15 AM UTC
|
|
schedule:
|
|
- cron: "15 2 * * *"
|
|
|
|
jobs:
|
|
validate-dotslash-artifacts:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'facebook/react-native'
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
fetch-tags: true
|
|
- name: Install dependencies
|
|
uses: ./.github/actions/yarn-install
|
|
- name: Configure Git
|
|
shell: bash
|
|
run: |
|
|
git config --local user.email "bot@reactnative.dev"
|
|
git config --local user.name "React Native Bot"
|
|
- name: Validate DotSlash artifacts
|
|
uses: actions/github-script@v6
|
|
with:
|
|
script: |
|
|
const {validateDotSlashArtifacts} = require('./scripts/releases/validate-dotslash-artifacts.js');
|
|
await validateDotSlashArtifacts();
|