Skip to content

Commit c9c75a5

Browse files
committed
ci: only trigger changelog workflow on pull request
1 parent f5659dc commit c9c75a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/changelog-requirement.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
require-changelog:
11-
if: ${{ !contains(github.event.*.labels.*.name, 'skip-changelog') }}
11+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-changelog') }}
1212
name: Requires changelog
1313
runs-on: ubuntu-latest
1414
steps:
@@ -27,7 +27,7 @@ jobs:
2727
- name: Check changelog existence
2828
if: steps.changelog-file.outputs.any_changed == 'false'
2929
run: |
30-
echo("Please include a CHANGELOG entry. You can find it at [CHANGELOG.md](https://github.com/3scale/apicast/blob/master/CHANGELOG.md)."
30+
echo "Please include a CHANGELOG entry. You can find it at [CHANGELOG.md](https://github.com/3scale/apicast/blob/master/CHANGELOG.md)."
3131
echo "Note, we hard-wrap at 80 chars and use 2 spaces after the last line."
3232
echo "If you believe this PR requires no changelog entry, label it with \"skip-changelog\"."
3333
exit 1

0 commit comments

Comments
 (0)