Change to towncrier

This commit is contained in:
Alex Root Junior 2022-03-26 18:49:14 +02:00
parent 28d39cd96e
commit 87a44f5f93
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

@ -12,9 +12,18 @@ jobs:
runs-on: ubuntu-latest
name: "Check that changes is described"
steps:
- name: "Check for news entry"
uses: brettcannon/check-for-changed-files@v1
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
file-pattern: "CHANGES/*"
skip-label: "skip news"
failure-message: "Missing a news file in ${file-pattern}; please add one or apply the ${skip-label} label to the pull request"
python-version: 3.10
- name: Install towncrier
run: pip install towncrier
- name: "Check changelog"
run: towncrier check --compare-with ${{ github.head_ref }}
- if: "failure()"
run: echo "FAILED"
- if: "success()"
run: echo "PASS"