Skip to content

Commit

Permalink
fix(actions): update version bumping to release new script
Browse files Browse the repository at this point in the history
  • Loading branch information
KingMichaelPark committed May 31, 2024
1 parent e3df699 commit c8e13ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .cz.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tool]
[tool.commitizen]
name = "cz_conventional_commits"
version = "1.2.5"
tag_format = "v$version"
version_scheme = "semver"
version = "1.2.5"
update_changelog_on_bump = true
15 changes: 8 additions & 7 deletions .github/workflows/bump-tag.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Bump and Tag

# Controls when the action will run.
Expand All @@ -12,20 +13,20 @@ on:
workflow_dispatch:

jobs:
bump-version:
bump_version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

- name: Create bump and changelog
token: "${{ secrets.GITHUB_TOKEN }}"
- id: cz
name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.ORG_PAT }}
changelog_increment_filename: body.md
increment: PATCH
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Print Version
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"

0 comments on commit c8e13ca

Please sign in to comment.