pip/.github/workflows/news-file.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
708 B
YAML
Raw Normal View History

name: Check
2021-04-07 10:32:06 +02:00
on:
pull_request:
types: [labeled, unlabeled, opened, reopened, synchronize]
2021-04-07 10:32:06 +02:00
jobs:
check-news-entry:
name: news entry
2021-04-07 10:32:06 +02:00
runs-on: ubuntu-20.04
2021-04-07 10:32:06 +02:00
steps:
- uses: actions/checkout@v4
2021-04-07 10:32:06 +02:00
with:
# `towncrier check` runs `git diff --name-only origin/main...`, which
# needs a non-shallow clone.
2021-04-07 10:32:06 +02:00
fetch-depth: 0
- name: Check news entry
2022-06-10 12:33:28 +02:00
if: "!contains(github.event.pull_request.labels.*.name, 'skip news')"
run: |
if ! pipx run towncrier check --compare-with origin/${{ github.base_ref }}; then
echo "Please see https://pip.pypa.io/dev/news-entry-failure for guidance."
false
fi