diff options
Diffstat (limited to '.github/workflows/news-file.yaml')
-rw-r--r-- | .github/workflows/news-file.yaml | 13 |
1 files changed, 13 insertions, 0 deletions
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')) }} |