Skip to content

Commit 653de6e

Browse files
committed
Add github action to protect released changelog
1 parent f779268 commit 653de6e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This action against that any PR targeting the main branch touches released
2+
# sections in CHANGELOG file. If change to released CHANGELOG is required, like
3+
# doing a release, add the \"Unlock Released Changelog\" label to disable this action.
4+
5+
name: Protect released changelog
6+
7+
on:
8+
pull_request:
9+
types: [opened, synchronize, reopened, labeled, unlabeled]
10+
jobs:
11+
protect-released-changelog:
12+
runs-on: ubuntu-latest
13+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'Unlock Released Changelog')}}
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Protect the released changelog
19+
run: |
20+
./tools/verify_released_changelog.sh ${{ github.base_ref }}

0 commit comments

Comments
 (0)