Skip to content

Commit 9df8802

Browse files
committed
Update changelog ci for github action
1 parent d89f65b commit 9df8802

File tree

2 files changed

+9
-39
lines changed

2 files changed

+9
-39
lines changed

.github/workflows/changelog.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,23 @@
1-
name: Change Logs
1+
name: Release changelog
22

33
on:
44
release:
5-
types: [ released ]
5+
types:
6+
- published
7+
- released
68

79
jobs:
8-
latest-changes:
10+
changelog:
911
runs-on: ubuntu-latest
1012
permissions:
1113
contents: write
12-
1314
steps:
1415
- name: Checkout code
1516
uses: actions/checkout@v4
1617
with:
17-
ref: ${{ github.event.release.target_commitish }}
18-
19-
- name: Update Changelog
20-
uses: stefanzweifel/changelog-updater-action@v1
21-
with:
22-
release-notes: ${{ github.event.release.body }}
23-
latest-version: ${{ github.event.release.tag_name }}
24-
path-to-changelog: docs/changelog.md
18+
ref: master
2519

26-
- name: Commit updated CHANGELOG
27-
uses: stefanzweifel/git-auto-commit-action@v5
20+
- uses: rhysd/changelog-from-release/action@v3
2821
with:
29-
branch: ${{ github.event.release.target_commitish }}
30-
commit_message: 📝 Update release notes
31-
file_pattern: docs/changelog.md
22+
file: docs/changelog.md
23+
github_token: ${{ secrets.GITHUB_TOKEN }}

docs/changelog.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +0,0 @@
1-
# Change Logs
2-
3-
## 1.6.0 - 2024-11-09
4-
5-
### What's Changed
6-
7-
* Add the flush usage by @wu-clan in https://github.com/fastapi-practices/sqlalchemy-crud-plus/pull/32
8-
* Prepare for 1.6.0 release by @wu-clan in https://github.com/fastapi-practices/sqlalchemy-crud-plus/pull/33
9-
10-
**Full Changelog**: https://github.com/fastapi-practices/sqlalchemy-crud-plus/compare/1.5.0...1.6.0
11-
12-
## 1.5.0 - 2024-11-03
13-
14-
### What's Changed
15-
16-
* Update some usage documents by @wu-clan in https://github.com/fastapi-practices/sqlalchemy-crud-plus/pull/27
17-
* Update the interactive link address by @wu-clan in https://github.com/fastapi-practices/sqlalchemy-crud-plus/pull/28
18-
* update interactive link descriptions by @wu-clan in https://github.com/fastapi-practices/sqlalchemy-crud-plus/pull/29
19-
* Update package manager pdm to uv by @wu-clan in https://github.com/fastapi-practices/sqlalchemy-crud-plus/pull/31
20-
* Add create and update kwargs usage by @wu-clan in https://github.com/fastapi-practices/sqlalchemy-crud-plus/pull/30
21-
22-
**Full Changelog**: https://github.com/fastapi-practices/sqlalchemy-crud-plus/compare/1.4.0...1.5.0

0 commit comments

Comments
 (0)