Skip to content

Commit 9751af9

Browse files
committedMar 15, 2022
Move changelog check GitHub action to separate workflow that doesn't run on main
1 parent 1864554 commit 9751af9

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed
 

‎.github/workflows/changelog.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Ensure CHANGELOG updated
2+
3+
on:
4+
pull_request:
5+
types: [ assigned, opened, synchronize, reopened, labeled, unlabeled ]
6+
branches: [ main ]
7+
8+
jobs:
9+
changelog:
10+
name: Ensure changelog updated
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Changelog check
14+
uses: Zomzog/changelog-checker@v1.2.0
15+
with:
16+
fileName: CHANGELOG.md
17+
noChangelogLabel: no-changelog
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/rust.yml

-11
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
changelog:
14-
name: Ensure changelog updated
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: Changelog check
18-
uses: Zomzog/changelog-checker@v1.2.0
19-
with:
20-
fileName: CHANGELOG.md
21-
noChangelogLabel: no-changelog
22-
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2413
check:
2514
name: Check
2615
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)
Please sign in to comment.