Skip to content

Commit

Permalink
add CI check that CHANGES.rst is not modified (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram authored Sep 17, 2024
2 parents cef755e + 0746f70 commit 93f1cec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ jobs:
- run: pip install towncrier
- run: towncrier check
- run: towncrier build --draft | grep -P '#${{ github.event.number }}'
changelog_uses_towncrier:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'allow-manual-changelog-edit') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git diff HEAD ${{ github.event.pull_request.base.sha }} --no-patch --exit-code CHANGES.rst

0 comments on commit 93f1cec

Please sign in to comment.