diff --git a/.github/workflows/apply-version-label-issue.yml b/.github/workflows/apply-version-label-issue.yml index 121e280cfca..90b2b50d13c 100644 --- a/.github/workflows/apply-version-label-issue.yml +++ b/.github/workflows/apply-version-label-issue.yml @@ -13,6 +13,7 @@ jobs: issues: write # for react-native-community/actions-apply-version-label to label issues runs-on: ubuntu-latest continue-on-error: true + if: github.repository == 'facebook/react-native' steps: - uses: react-native-community/actions-apply-version-label@v0.0.3 diff --git a/.github/workflows/close_pr.yml b/.github/workflows/close_pr.yml index a31aa01ce73..fec327b2a16 100644 --- a/.github/workflows/close_pr.yml +++ b/.github/workflows/close_pr.yml @@ -9,6 +9,7 @@ permissions: jobs: comment-and-label: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' steps: - uses: actions/github-script@v6 with: diff --git a/.github/workflows/danger_pr.yml b/.github/workflows/danger_pr.yml index 06f8a2e8302..62b8b612fe1 100644 --- a/.github/workflows/danger_pr.yml +++ b/.github/workflows/danger_pr.yml @@ -15,6 +15,7 @@ permissions: jobs: danger: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' steps: - uses: actions/checkout@v3 - name: Run Yarn Install on Root diff --git a/.github/workflows/needs-attention.yml b/.github/workflows/needs-attention.yml index f1ec7e88134..741ece44b4d 100644 --- a/.github/workflows/needs-attention.yml +++ b/.github/workflows/needs-attention.yml @@ -14,6 +14,7 @@ jobs: issues: write # for hramos/needs-attention to label issues name: Apply Needs Attention Label runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' steps: - uses: actions/checkout@v3 - name: Apply Needs Attention Label diff --git a/.github/workflows/on-issue-labeled.yml b/.github/workflows/on-issue-labeled.yml index 72e7efbb1ac..ad74d286cb4 100644 --- a/.github/workflows/on-issue-labeled.yml +++ b/.github/workflows/on-issue-labeled.yml @@ -13,7 +13,7 @@ jobs: # then invokes actOnLabel to react to any added labels triage-issue: runs-on: ubuntu-latest - if: "${{ contains(github.event.label.name, 'Needs: Triage :mag:') }}" + if: "${{ github.repository == 'facebook/react-native' && contains(github.event.label.name, 'Needs: Triage :mag:') }}" steps: - uses: actions/checkout@v3 - uses: actions/github-script@v6 @@ -36,6 +36,7 @@ jobs: # Reacts to the label that triggered this workflow (added manually or via other workflows) act-on-label: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' steps: - uses: actions/checkout@v3 - uses: actions/github-script@v6 diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index 7bdd9a2f9f3..60b662e92e4 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -5,6 +5,7 @@ on: jobs: stale: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' permissions: issues: write pull-requests: write @@ -19,6 +20,7 @@ jobs: close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.' stale-needs-author-feedback: runs-on: ubuntu-latest + if: github.repository == 'facebook/react-native' permissions: issues: write pull-requests: write