Skip to content

Commit

Permalink
ci: Add update-changelog job
Browse files Browse the repository at this point in the history
  • Loading branch information
janw committed Jan 13, 2024
1 parent b7c11d0 commit fac118d
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/update-changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Update Changelog

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

- name: Show diff
run: git diff CHANGELOG.md
shell: bash

- uses: EndBug/add-and-commit@v9
with:
add: 'CHANGELOG.md'
default_author: github_actions
message: 'docs(changelog) Update changelog'
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

### Feat

- Completely refactor processing logic (#50)
- Integrate click for cli and config-parsing
- Allow configuration of config envvar
- Add config file support

### Fix

- Remnant build-backend adjusted to poetry
- Update user-agent URL

### Refactor
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ gpg_sign = true
annotated_tag = true
tag_format = "v$version"
update_changelog_on_bump = true
changelog_incremental = true
changelog_start_rev = "0.4"

[tool.ruff]
Expand Down

0 comments on commit fac118d

Please sign in to comment.