Skip to content

Commit e8ff709

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

File tree

2 files changed

+8
-41
lines changed

2 files changed

+8
-41
lines changed

.github/workflows/changelog.yml

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

33
on:
4-
release:
5-
types: [ released ]
4+
push:
5+
tags:
6+
- *
67

78
jobs:
8-
latest-changes:
9+
changelog:
910
runs-on: ubuntu-latest
1011
permissions:
1112
contents: write
12-
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
16-
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
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: CHANGELOG.md
20+
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)