Skip to content

Commit

Permalink
feat: build change log workflow
Browse files Browse the repository at this point in the history
bug: fetch all commits
  • Loading branch information
mhzawadi committed Feb 11, 2025
1 parent 555b5b5 commit fc567f8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Update Change Log"

on:
workflow_dispatch:

jobs:
build:
name: Rebuild Change Log
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v5
with:
python-version: '3.13'

- name: Commit updated change log
run: |
python3.13 -m pip install -r requirements.txt
gitchangelog > CHANGELOG.md
git config user.name github-actions
git config user.email [email protected]
git add CHANGELOG.md
git commit -m "doc: update CHANGELOG.md" || exit 0
git push
2 changes: 2 additions & 0 deletions .github/workflows/merge-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit fc567f8

Please sign in to comment.