Skip to content

Commit

Permalink
new: dev: added a changelog workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
motrellin committed Jul 24, 2024
1 parent 8a29482 commit 92be316
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Update Changelog

on:
push:
branches:
- main

jobs:
update-changelog:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install gitchangelog
run: |
pip install gitchangelog
- name: Generate Changelog
run: |
gitchangelog > CHANGELOG.md
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add CHANGELOG.md
git commit -m 'chg: doc: update CHANGELOG'
git push

0 comments on commit 92be316

Please sign in to comment.