Skip to content

Commit

Permalink
common: Zomzog/changelog-checker executed only for PR
Browse files Browse the repository at this point in the history
`Zomzog/changelog-checker` action can only be run on PR, otherwise
the action fails E.g. when the Main workflow is run manually.

Signed-off-by: Tomasz Gromadzki <[email protected]>
  • Loading branch information
grom72 committed Oct 27, 2024
1 parent 5903626 commit d83acf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
# Skip for pmem/pmdk/master and stable-* branches
if: |
!(github.repository == 'pmem/pmdk' &&
(github.ref_name == 'master' || startsWith(github.ref_name, 'stable-')))
(github.ref_name == 'master' || startsWith(github.ref_name, 'stable-'))) &&
github.event_name == 'pull_request'
uses: Zomzog/changelog-checker@09cfe9ad3618dcbfdba261adce0c41904cabb8c4 # v1.3.0
with:
fileName: ChangeLog
Expand Down

0 comments on commit d83acf0

Please sign in to comment.