-
-
Notifications
You must be signed in to change notification settings - Fork 87
27 lines (22 loc) · 690 Bytes
/
news.yaml
File metadata and controls
27 lines (22 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Check news file
on:
pull_request:
types: [labeled, unlabeled, opened, reopened, synchronize]
permissions: {}
jobs:
check-news-entry:
name: news entry
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
# `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/${BASE_REF}"
env:
BASE_REF: ${{ github.base_ref }}