Skip to content

Commit cc8adca

Browse files
authored
feat: Add changelog from release notes (#530)
Update GitHub Actions workflow to generate changelog from release notes on release event. - **Workflow Changes**: - Renames workflow from `Changelog CI` to `Changelog on release` in `.github/workflows/changelog-ci.yml`. - Changes trigger from `pull_request` to `release` with type `published`. - **Actions**: - Updates `actions/checkout` from `v2` to `v4` with `fetch-depth: 0` and `ref: dev`. - Replaces `saadmk11/[email protected]` with `rhysd/changelog-from-release/action@v3` to generate changelog from release notes.
1 parent de2be8b commit cc8adca

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

Diff for: .github/workflows/changelog-ci.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
name: Changelog CI
1+
name: Changelog on release
22

3-
# TODO: This is currently not working. Need to fix it
43
on:
5-
pull_request:
6-
types: [ opened, synchronize ]
4+
release:
5+
types: [published]
76

87
jobs:
9-
build:
8+
changelog:
109
runs-on: ubuntu-latest
1110

1211
steps:
1312
# Checks-out your repository
14-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
ref: dev
1517

16-
- name: Run Changelog CI
17-
uses: saadmk11/changelog-[email protected]
18+
# Generate changelog from release notes
19+
- uses: rhysd/changelog-from-release/action@v3
1820
with:
19-
changelog_filename: CHANGELOG.md
20-
# config_file: changelog-ci-config.json
21+
file: CHANGELOG.md
2122
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
pull_request: true
24+

0 commit comments

Comments
 (0)