Skip to content

Commit 96b0ef0

Browse files
committed
Provide additional context on news entry check failures
1 parent 116e531 commit 96b0ef0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/news-file.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,11 @@ jobs:
1515
# `towncrier check` runs `git diff --name-only origin/main...`, which
1616
# needs a non-shallow clone.
1717
fetch-depth: 0
18-
- run: pipx run towncrier check --compare-with origin/${{ github.event.pull_request.base.ref }}
19-
if: ${{ ! (contains(github.event.pull_request.labels.*.name, 'trivial')) }}
18+
19+
- name: Check news entry
20+
if: "!contains(github.event.pull_request.labels.*.name, 'trivial')"
21+
run: |
22+
if ! pipx run towncrier check --compare-with origin/${{ github.base_ref }}; then
23+
echo "Please https://pip.pypa.io/dev/news-entry-failure for guidance."
24+
false
25+
fi

0 commit comments

Comments
 (0)