Skip to content

Commit 2f08e74

Browse files
authored
Merge pull request #1177 from PHPCSStandards/feature/ghactions-verify-release-dont-trigger-external-on-pr
GH Actions/verify-release: fine tune update trigger conditions
2 parents 190a321 + bf6c238 commit 2f08e74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/verify-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
trigger-schema-site-update:
2828
runs-on: ubuntu-latest
2929

30-
# Only run this workflow in the context of this repo.
31-
if: github.repository_owner == 'PHPCSStandards'
30+
# Only run this workflow in the context of this repo, don't run for changed workflow PR dry-runs.
31+
if: github.repository_owner == 'PHPCSStandards' && github.event_name != 'pull_request'
3232

3333
name: "Trigger update of schema website"
3434

@@ -46,8 +46,8 @@ jobs:
4646
trigger-wiki-update:
4747
runs-on: ubuntu-latest
4848

49-
# Only run this workflow in the context of this repo.
50-
if: github.repository_owner == 'PHPCSStandards'
49+
# Only run this workflow in the context of this repo, don't run for changed workflow PR dry-runs.
50+
if: github.repository_owner == 'PHPCSStandards' && github.event_name != 'pull_request'
5151

5252
name: "Trigger update of wiki"
5353

0 commit comments

Comments
 (0)