Debian Codegraph @

.github/workflows/protect-released-changelog.yml

raw
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
11 # Declare default permissions as read only.
12 permissions: read-all
13
14 jobs:
15 protect-released-changelog:
16 runs-on: ubuntu-latest
17 if: ${{ !contains(github.event.pull_request.labels.*.name, 'Unlock Released Changelog')}}
18
19 steps:
20 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21
22 - name: Protect the released changelog
23 run: |
24 ./verify_released_changelog.sh ${{ github.base_ref }}