From c3b07a6e5ea9ef35b1fdf2fcc58be103ec0f4b95 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Sun, 21 Apr 2024 02:01:23 +0200 Subject: [PATCH] Adjust nightly org restriction check Check for the specific repository. Closes GH-14026 --- .github/workflows/close-needs-feedback.yml | 2 +- .github/workflows/close-stale-feature-requests.yml | 2 +- .github/workflows/close-stale-prs.yml | 2 +- .github/workflows/nightly.yml | 6 +++--- .github/workflows/remove-needs-feedback.yml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/close-needs-feedback.yml b/.github/workflows/close-needs-feedback.yml index 27231303f16e5..761618075d2cc 100644 --- a/.github/workflows/close-needs-feedback.yml +++ b/.github/workflows/close-needs-feedback.yml @@ -9,7 +9,7 @@ permissions: jobs: build: - if: github.repository_owner == 'php' + if: github.repository == 'php/php-src' runs-on: ubuntu-latest permissions: issues: write diff --git a/.github/workflows/close-stale-feature-requests.yml b/.github/workflows/close-stale-feature-requests.yml index 6a464df018f41..5e2956d0ab852 100644 --- a/.github/workflows/close-stale-feature-requests.yml +++ b/.github/workflows/close-stale-feature-requests.yml @@ -9,7 +9,7 @@ permissions: jobs: stale: - if: github.repository_owner == 'php' + if: github.repository == 'php/php-src' runs-on: ubuntu-latest permissions: issues: write diff --git a/.github/workflows/close-stale-prs.yml b/.github/workflows/close-stale-prs.yml index ab17c074155f3..9530bae99edbd 100644 --- a/.github/workflows/close-stale-prs.yml +++ b/.github/workflows/close-stale-prs.yml @@ -9,7 +9,7 @@ permissions: jobs: stale: - if: github.repository_owner == 'php' + if: github.repository == 'php/php-src' runs-on: ubuntu-latest permissions: issues: write diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index e76c470ce8d62..0ccc1cc03b461 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -8,7 +8,7 @@ permissions: jobs: GENERATE_MATRIX: name: Generate Matrix - if: github.repository_owner == 'php' || github.event_name == 'workflow_dispatch' + if: github.repository == 'php/php-src' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest outputs: branches: ${{ steps.set-matrix.outputs.branches }} @@ -288,7 +288,7 @@ jobs: with: token: ${{ secrets.ACTION_MONITORING_SLACK }} COVERAGE_DEBUG_NTS: - if: github.repository_owner == 'php' || github.event_name == 'workflow_dispatch' + if: github.repository == 'php/php-src' || github.event_name == 'workflow_dispatch' services: postgres: image: postgres @@ -769,7 +769,7 @@ jobs: with: token: ${{ secrets.ACTION_MONITORING_SLACK }} PECL: - if: github.repository_owner == 'php' || github.event_name == 'workflow_dispatch' + if: github.repository == 'php/php-src' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-22.04 env: CC: ccache gcc diff --git a/.github/workflows/remove-needs-feedback.yml b/.github/workflows/remove-needs-feedback.yml index 8d1ff3e0a0712..ed68983414889 100644 --- a/.github/workflows/remove-needs-feedback.yml +++ b/.github/workflows/remove-needs-feedback.yml @@ -10,7 +10,7 @@ permissions: jobs: build: - if: "github.repository_owner == 'php' && contains(github.event.issue.labels.*.name, 'Status: Needs Feedback') && github.event.issue.user.login == github.event.sender.login" + if: "github.repository == 'php/php-src' && contains(github.event.issue.labels.*.name, 'Status: Needs Feedback') && github.event.issue.user.login == github.event.sender.login" runs-on: ubuntu-latest permissions: issues: write