-
-
Notifications
You must be signed in to change notification settings - Fork 25
46 lines (42 loc) · 1.16 KB
/
pr-check.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: PR Check
on:
pull_request:
types:
- "opened"
- "reopened"
- "synchronize"
- "labeled"
- "unlabeled"
jobs:
files-changed:
name: Files up-to-date
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cargo.lock up-to-date
uses: brettcannon/check-for-changed-files@v1
with:
prereq-pattern: Cargo.toml
file-pattern: Cargo.lock
skip-label: skip Cargo.lock
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Man page up-to-date
uses: brettcannon/check-for-changed-files@v1
with:
prereq-pattern: man-page/py.1.md
file-pattern: man-page/py.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
impact:
name: Impact specified
runs-on: ubuntu-latest
steps:
- name: "`impact` label specified"
uses: mheap/github-action-required-labels@v5
with:
mode: "exactly"
count: 1
labels: "impact-breaking, impact-enhancement, impact-bugfix, impact-docs, impact-maintenance"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}