Skip to content

Update build.yml

Update build.yml #53

name: "Update Changelog GIT"
on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
jobs:
update-file:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate a changelog
uses: orhun/git-cliff-action@v2
id: git-cliff
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: GIT_CHANGELOG.md
- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: GIT_CHANGELOG.md