Skip to content

Commit 80ebeb5

Browse files
Create news-file.yaml
1 parent 98fdc7a commit 80ebeb5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/news-file.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on:
2+
pull_request:
3+
types: [labeled, unlabeled, opened, reopened, synchronize]
4+
jobs:
5+
check-news-file:
6+
runs-on: ubuntu-20.04
7+
steps:
8+
- uses: actions/checkout@v2
9+
with:
10+
# `towncrier check` needs enough history to run `git diff --name-only origin/main...`
11+
fetch-depth: 0
12+
- run: pipx run towncrier check --compare-with origin/main
13+
if: ${{ ! (contains(github.event.pull_request.labels.*.name, 'trivial')) }}

0 commit comments

Comments
 (0)