From 4bd7306a3d963c7ff0a0afaf01fccf6dece2dca8 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 9 Dec 2024 08:51:09 +0100 Subject: [PATCH] GH Actions/verify-release: only run for this repo If a fork of the repo would publish their own releases, the workflow would fail anyhow (as the releases wouldn't be published to the website, nor accessible via Phive), so let's just prevent it from running altogether. --- .github/workflows/verify-release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml index 2ef007c4ce..99f611526a 100644 --- a/.github/workflows/verify-release.yml +++ b/.github/workflows/verify-release.yml @@ -27,6 +27,9 @@ jobs: verify-available-downloads: runs-on: ubuntu-latest + # Only run this workflow in the context of this repo. + if: github.repository_owner == 'PHPCSStandards' + strategy: fail-fast: false matrix: @@ -129,6 +132,9 @@ jobs: verify-phive: runs-on: ubuntu-latest + # Only run this workflow in the context of this repo. + if: github.repository_owner == 'PHPCSStandards' + strategy: fail-fast: false matrix: