Added changelog auto generation

This commit is contained in:
Roman Kelesidis 2025-01-09 17:54:40 +07:00
commit 026f27ee28

30
.github/workflows/changelog.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Generating / updating changelog
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Generate a changelog
uses: orhun/git-cliff-action@v3
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: CHANGELOG.md
- name: Commit Changelog
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md 📖"
git push https://github.com/${{ github.repository }}.git HEAD:main