Skip to content

Commit

Permalink
GH Actions/verify-release: only run for this repo
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrfnl committed Dec 9, 2024
1 parent 7b27476 commit 4bd7306
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/verify-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4bd7306

Please sign in to comment.