From 22c0312b54860ea55779825533c1953bb41bef20 Mon Sep 17 00:00:00 2001 From: Johanna England Date: Thu, 7 Mar 2024 15:53:04 +0100 Subject: [PATCH] Add Github action for towncrier Checks if either a change file has been added or changelog has been changed (in case of release) --- .github/workflows/towncrier.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/towncrier.yml diff --git a/.github/workflows/towncrier.yml b/.github/workflows/towncrier.yml new file mode 100644 index 0000000000..3d72d6d3af --- /dev/null +++ b/.github/workflows/towncrier.yml @@ -0,0 +1,19 @@ +name: Check for changelog file + +on: [pull_request] + +jobs: + towncrier: + runs-on: ubuntu-latest + name: Towncrier check + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install towncrier + run: | + pip install -U pip + pip install towncrier + - name: Check for changelog file + run: towncrier check --compare-with origin/master