Skip to content

Commit 37581d0

Browse files
arrowplumCopilot
andauthored
chore(release): create pr for notes on release (#75)
--------- Co-authored-by: Copilot <[email protected]>
1 parent 95e0e1d commit 37581d0

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

0 commit comments

Comments
 (0)