File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release Changelog PR
2+ on :
3+ release :
4+ types : [published]
5+ workflow_dispatch :
6+
7+ permissions :
8+ contents : write
9+ pull-requests : write
10+
11+ jobs :
12+ create-changelog-pr :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v5
16+ with :
17+ fetch-depth : 0
18+ fetch-tags : true
19+ ref : main
20+
21+ - uses : actions/setup-node@v6
22+ with :
23+ node-version : 22
24+
25+ - name : Update CHANGELOG.md
26+ run : |
27+ npx -y conventional-changelog-cli@5 \
28+ -p conventionalcommits \
29+ -i CHANGELOG.md -s
30+
31+ - name : Open PR with changelog
32+ uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
33+ with :
34+ token : ${{ secrets.GITHUB_TOKEN }}
35+ base : main
36+ branch : chore/changelog-${{ github.event.release.tag_name }} # created if missing
37+ commit-message : " docs(changelog): release notes for ${{ github.event.release.tag_name }}"
38+ title : " docs(changelog): release notes for ${{ github.event.release.tag_name }}"
39+ body : " Automated changelog update for ${{ github.event.release.tag_name }}."
40+ add-paths : |
41+ CHANGELOG.md
You can’t perform that action at this time.
0 commit comments