Skip to content

ci: Add update-changelog job #2

ci: Add update-changelog job

ci: Add update-changelog job #2

name: Python Package
on:
push:
branches:
- "update-changelog"
- "main"
jobs:
update-changelog:
if: >
!startsWith(github.event.head_commit.message, 'bump:')
&& !startsWith(github.event.head_commit.message, 'docs(changelog):')
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
sparse-checkout: |
CHANGELOG.md
sparse-checkout-cone-mode: false
- name: Install commitizen
run: pipx install commitizen
- name: Update changelog
run: cz changelog
shell: bash
- uses: EndBug/add-and-commit@v9
with:
add: 'CHANGELOG.md'
default_author: github_actions
message: 'docs(changelog) Update changelog'