-
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.03 KB
/
update-changelog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "Update Changelog"
on:
release:
types: [released]
permissions:
contents: write
pull-requests: write
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: main
- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}
- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: update-changelog
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: update-changelog
commit-message: Update CHANGELOG
title: Update CHANGELOG
body: This PR updates the CHANGELOG with the latest release notes.
labels: changelog