Skip to content

Commit 3078d19

Browse files
author
Roman
committed
add changelog checker
1 parent bf7caad commit 3078d19

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Changelog guard (for release of hotfix)
2+
on:
3+
pull_request:
4+
branches:
5+
- 'release/**'
6+
- 'Release/**'
7+
- 'hotfix/**'
8+
- 'Hotfix/**'
9+
10+
jobs:
11+
changelog:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: tj-actions/changed-files@v42
16+
id: changed
17+
- name: Ensure CHANGELOG.md updated
18+
if: contains(steps.changed.outputs.all_changed_files, 'CHANGELOG.md') == false
19+
uses: actions/github-script@v7
20+
with:
21+
script: core.setFailed('CHANGELOG.md must be updated.')

0 commit comments

Comments
 (0)