Skip to content

Commit d01b2d4

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

File tree

2 files changed

+9
-41
lines changed

2 files changed

+9
-41
lines changed

.github/workflows/changelog.yml

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

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

78
jobs:
8-
latest-changes:
9+
changelog:
910
runs-on: ubuntu-latest
10-
permissions:
11-
contents: write
12-
1311
steps:
1412
- name: Checkout code
1513
uses: actions/checkout@v4
1614
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
15+
ref: master
2516

26-
- name: Commit updated CHANGELOG
27-
uses: stefanzweifel/git-auto-commit-action@v5
17+
- uses: rhysd/changelog-from-release/action@v3
2818
with:
29-
branch: ${{ github.event.release.target_commitish }}
30-
commit_message: 📝 Update release notes
31-
file_pattern: docs/changelog.md
19+
file: docs/changelog.md
20+
pull_request: true
21+
github_token: ${{ secrets.GH_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)