mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Added changelog auto generation
This commit is contained in:
parent
1457d739dc
commit
026f27ee28
1 changed files with 30 additions and 0 deletions
30
.github/workflows/changelog.yml
vendored
Normal file
30
.github/workflows/changelog.yml
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue