31 lines
678 B
YAML
31 lines
678 B
YAML
name: Generate Changelog
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'src/**'
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
changelog:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Generate changelog
|
|
id: changelog
|
|
uses: heinrichreimer/github-changelog-generator-action@v2.3
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Commit updated changelog
|
|
run: |
|
|
git config --local user.email "action@github.com"
|
|
git config --local user.name "GitHub Action"
|
|
git add CHANGELOG.md
|
|
git commit -m "Update changelog" || true
|
|
git push
|