Skip to content

Commit 70b4c47

Browse files
authored
Update changelog ci for github action (#35)
* Update changelog ci for github action * Fix steps * update branch * update on
1 parent d89f65b commit 70b4c47

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:
4-
release:
5-
types: [ released ]
4+
push:
65

76
jobs:
8-
latest-changes:
7+
changelog:
98
runs-on: ubuntu-latest
109
permissions:
1110
contents: write
12-
1311
steps:
1412
- name: Checkout code
1513
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
2514

26-
- name: Commit updated CHANGELOG
27-
uses: stefanzweifel/git-auto-commit-action@v5
15+
- uses: TriPSs/conventional-changelog-action@v5
2816
with:
29-
branch: ${{ github.event.release.target_commitish }}
30-
commit_message: 📝 Update release notes
31-
file_pattern: docs/changelog.md
17+
github-token: ${{ secrets.github_token }}
18+
git-message: '📝 Update release notes'
19+
git-user-name: 'github-actions[bot]'
20+
git-user-email: 'github-actions[bot]@users.noreply.github.com'
21+
output-file: 'docs/changelog.md'

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)