Skip to content

Commit e88539d

Browse files
committed
Test changelog action
1 parent 8ce24a9 commit e88539d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/changelog.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Update Changelog"
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
# Give the default GITHUB_TOKEN write permission to commit and push the
14+
# updated CHANGELOG back to the repository.
15+
# https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
16+
contents: write
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
with:
22+
ref: ${{ github.event.release.target_commitish }}
23+
24+
- name: Update Changelog
25+
uses: stefanzweifel/changelog-updater-action@v1
26+
with:
27+
latest-version: ${{ github.event.release.tag_name }}
28+
release-notes: ${{ github.event.release.body }}
29+
30+
- name: Commit updated CHANGELOG
31+
uses: stefanzweifel/git-auto-commit-action@v5
32+
with:
33+
branch: ${{ github.event.release.target_commitish }}
34+
commit_message: Update CHANGELOG
35+
file_pattern: CHANGELOG.md

0 commit comments

Comments
 (0)