Skip to content

Commit

Permalink
perform the grep over the CHANGELOG.md diff instead of the whole file
Browse files Browse the repository at this point in the history
  • Loading branch information
ricomateo committed Jan 20, 2025
1 parent 0fc265d commit 3893449
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: dangoslen/changelog-enforcer@v3
with:
skipLabels: changelog-ignore

- name: Enforce PR URL in CHANGELOG.md
if: contains(github.event.pull_request.labels.*.name, 'changelog-ignore') == false
run: grep $PR_URL CHANGELOG.md
run: git diff CHANGELOG.md | grep $PR_URL CHANGELOG.md

0 comments on commit 3893449

Please sign in to comment.