Skip to content

[pre-commit.ci] pre-commit autoupdate #454

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #454

Workflow file for this run

name: Check news file
on:
pull_request:
types: [labeled, unlabeled, opened, reopened, synchronize]
jobs:
check-news-entry:
name: news entry
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
# `towncrier check` runs `git diff --name-only origin/main...`, which
# needs a non-shallow clone.
fetch-depth: 0
- name: Check news entry
if: "!contains(github.event.pull_request.labels.*.name, 'skip news')"
run: |
pipx run towncrier check --compare-with origin/${{ github.base_ref }}