From 87a44f5f93850a33b5c9a48398156c1aad6ae674 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 26 Mar 2022 18:49:14 +0200 Subject: [PATCH] Change to towncrier --- .github/workflows/pull_request_changelog.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pull_request_changelog.yml b/.github/workflows/pull_request_changelog.yml index 4a7683af..1d0fdbcf 100644 --- a/.github/workflows/pull_request_changelog.yml +++ b/.github/workflows/pull_request_changelog.yml @@ -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"