From 008bb82e35867d64ad7f2c4cf9b002eec73b3070 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Fri, 18 Feb 2022 13:43:19 +0100 Subject: [PATCH] [ci skip] Don't run GitHub actions on forks Closes GH-8111 --- .github/workflows/close-needs-feedback.yml | 1 + .github/workflows/close-stale-prs.yml | 1 + .github/workflows/remove-needs-feedback.yml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/close-needs-feedback.yml b/.github/workflows/close-needs-feedback.yml index 5af9133a44198..7197598f38c49 100644 --- a/.github/workflows/close-needs-feedback.yml +++ b/.github/workflows/close-needs-feedback.yml @@ -6,6 +6,7 @@ on: jobs: build: + if: github.repository_owner == 'php' runs-on: ubuntu-latest steps: - name: Close old issues that need feedback diff --git a/.github/workflows/close-stale-prs.yml b/.github/workflows/close-stale-prs.yml index 5aa178eed2c2c..e5fbacff5d152 100644 --- a/.github/workflows/close-stale-prs.yml +++ b/.github/workflows/close-stale-prs.yml @@ -6,6 +6,7 @@ on: jobs: stale: + if: github.repository_owner == 'php' runs-on: ubuntu-latest steps: - uses: actions/stale@v4 diff --git a/.github/workflows/remove-needs-feedback.yml b/.github/workflows/remove-needs-feedback.yml index 8f6dfc47f1664..fded33b442081 100644 --- a/.github/workflows/remove-needs-feedback.yml +++ b/.github/workflows/remove-needs-feedback.yml @@ -7,7 +7,7 @@ on: jobs: build: - if: "contains(github.event.issue.labels.*.name, 'Status: Needs Feedback') && github.event.issue.user.login == github.event.sender.login" + if: "github.repository_owner == 'php' && contains(github.event.issue.labels.*.name, 'Status: Needs Feedback') && github.event.issue.user.login == github.event.sender.login" runs-on: ubuntu-latest steps: - uses: actions-ecosystem/action-remove-labels@v1