Skip to content

Commit

Permalink
GREP for PR reference accepts references that are split over a line (#…
Browse files Browse the repository at this point in the history
…2072)

Fixes #2070
  • Loading branch information
MarkCBell committed Mar 28, 2021
1 parent 4218ae1 commit dc8b0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Expand Up @@ -16,6 +16,6 @@ jobs:
- name: Grep CHANGES.md for PR number
if: contains(github.event.pull_request.labels.*.name, 'skip news') != true
run: |
grep -P "PR #${{ github.event.pull_request.number }}[^0-9]" CHANGES.md || \
grep -Pz "PR( |\n\s*)#${{ github.event.pull_request.number }}[^0-9]" CHANGES.md || \
(echo "Please add 'PR #${{ github.event.pull_request.number }}' change line to CHANGES.md" && \
exit 1)

0 comments on commit dc8b0a4

Please sign in to comment.