diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index ae5800f81ee..19608358a5e 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -19,6 +19,7 @@ on: jobs: create_release: + if: github.repository == 'facebook/react-native' runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 24177338f95..390975aafd2 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -23,6 +23,7 @@ jobs: prepare_hermes_workspace: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' env: HERMES_WS_DIR: /tmp/hermes HERMES_VERSION_FILE: packages/react-native/sdks/.hermesversion @@ -101,6 +102,7 @@ jobs: flavor: ${{ matrix.flavor }} prebuild_apple_dependencies: + if: github.repository == 'facebook/react-native' uses: ./.github/workflows/prebuild-ios-dependencies.yml secrets: inherit diff --git a/.github/workflows/publish-bumped-packages.yml b/.github/workflows/publish-bumped-packages.yml index f47ddd9fc03..ea8bc40a122 100644 --- a/.github/workflows/publish-bumped-packages.yml +++ b/.github/workflows/publish-bumped-packages.yml @@ -9,6 +9,7 @@ on: jobs: publish_bumped_packages: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' env: GHA_NPM_TOKEN: ${{ secrets.GHA_NPM_TOKEN }} steps: diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 8f356720f0b..efa432f4542 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -21,6 +21,7 @@ jobs: prepare_hermes_workspace: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' env: HERMES_WS_DIR: /tmp/hermes HERMES_VERSION_FILE: packages/react-native/sdks/.hermesversion @@ -98,6 +99,7 @@ jobs: flavor: ${{ matrix.flavor }} prebuild_apple_dependencies: + if: github.repository == 'facebook/react-native' uses: ./.github/workflows/prebuild-ios-dependencies.yml secrets: inherit diff --git a/.github/workflows/retry-workflow.yml b/.github/workflows/retry-workflow.yml index aef1766b361..d943d657d82 100644 --- a/.github/workflows/retry-workflow.yml +++ b/.github/workflows/retry-workflow.yml @@ -9,6 +9,7 @@ on: jobs: rerun: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' steps: - name: rerun ${{ inputs.run_id }} env: diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index e4f00621dee..f1f61cedece 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -11,6 +11,7 @@ on: jobs: set_release_type: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' outputs: RELEASE_TYPE: ${{ steps.set_release_type.outputs.RELEASE_TYPE }} env: @@ -34,6 +35,7 @@ jobs: prepare_hermes_workspace: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' env: HERMES_WS_DIR: /tmp/hermes HERMES_VERSION_FILE: packages/react-native/sdks/.hermesversion @@ -112,6 +114,7 @@ jobs: flavor: ${{ matrix.flavor }} prebuild_apple_dependencies: + if: github.repository == 'facebook/react-native' uses: ./.github/workflows/prebuild-ios-dependencies.yml secrets: inherit @@ -594,6 +597,7 @@ jobs: test_js: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' strategy: fail-fast: false matrix: @@ -608,6 +612,7 @@ jobs: lint: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: diff --git a/.github/workflows/validate-dotslash-artifacts.yml b/.github/workflows/validate-dotslash-artifacts.yml index 2b62d3b34c8..9463dacde97 100644 --- a/.github/workflows/validate-dotslash-artifacts.yml +++ b/.github/workflows/validate-dotslash-artifacts.yml @@ -27,6 +27,7 @@ on: jobs: validate-dotslash-artifacts: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' steps: - name: Checkout repository uses: actions/checkout@v4