From 80ebeb5a5c90368d0894cfec585ba03a27d4d97a Mon Sep 17 00:00:00 2001 From: Andrey Bienkowski Date: Wed, 7 Apr 2021 08:32:06 +0000 Subject: Create news-file.yaml --- .github/workflows/news-file.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/news-file.yaml (limited to '.github') diff --git a/.github/workflows/news-file.yaml b/.github/workflows/news-file.yaml new file mode 100644 index 000000000..0e219871a --- /dev/null +++ b/.github/workflows/news-file.yaml @@ -0,0 +1,13 @@ +on: + pull_request: + types: [labeled, unlabeled, opened, reopened, synchronize] +jobs: + check-news-file: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: + # `towncrier check` needs enough history to run `git diff --name-only origin/main...` + fetch-depth: 0 + - run: pipx run towncrier check --compare-with origin/main + if: ${{ ! (contains(github.event.pull_request.labels.*.name, 'trivial')) }} -- cgit v1.2.1