Skip to content

Commit f5c4a09

Browse files
authored
Merge pull request #10364 from pradyunsg/tweak-news-file
2 parents 01308b8 + 7b96794 commit f5c4a09

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed

.github/workflows/news-file.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/news-file.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, opened, reopened, synchronize]
6+
7+
jobs:
8+
check-news-entry:
9+
name: news entry
10+
runs-on: ubuntu-20.04
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
# `towncrier check` runs `git diff --name-only origin/main...`, which
16+
# needs a non-shallow clone.
17+
fetch-depth: 0
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 see https://pip.pypa.io/dev/news-entry-failure for guidance."
24+
false
25+
fi

0 commit comments

Comments
 (0)