X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/5d33f20a2a2c85cfb521ae9c5f9254bfe9fc2fd9..dab1be38e670b822777ac5338b9b2dfef4c34690:/.github/workflows/changelog.yml?ds=sidebyside diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 434950d..3ffdb08 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -11,11 +11,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - 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 || \ - (echo "Please add 'PR #${{ github.event.pull_request.number }}' change line to CHANGES.md" && \ + grep -Pz "\((\n\s*)?#${{ github.event.pull_request.number }}(\n\s*)?\)" CHANGES.md || \ + (echo "Please add '(#${{ github.event.pull_request.number }})' change line to CHANGES.md (or if appropriate, ask a maintainer to add the 'skip news' label)" && \ exit 1)