Skip to content

Commit

Permalink
fix the cz
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Aug 8, 2024
1 parent 04d2629 commit f2cc00d
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:



- name: Install Commitizen
- name: Incremennt version with .cz.yaml
shell: bash
run: |
cz bump \
Expand All @@ -89,17 +89,28 @@ jobs:
- name: Install Commitizen
# - name: Create Release Changelog
# shell: bash
# run: |
# cz changelog --incremental --dry-run --unreleased-version



- name: Update Changelog - (Other Branches)
if: ${{ github.ref_name != 'master' }}
shell: bash
run: |
cz changelog --incremental --dry-run --unreleased-version "${{ steps.get_next_version.outputs.nextStrict }}" > changelog-release.md
cz changelog --incremental --unreleased-version "${{ steps.get_next_version.outputs.nextStrict }}"
cz changelog --merge-prerelease --dry-run --incremental --unreleased-version "${{ steps.get_next_version.outputs.nextStrict }}" > changelog-release.md
# - name: Install Commitizen
# shell: bash
# run: |

- name: Update Changelog - (Master Branch)
if: ${{ github.ref_name == 'master' }}
shell: bash
run: |
cz changelog --merge-prerelease --unreleased-version ${{ steps.get_next_version.outputs.nextStrict }}"
cz changelog --merge-prerelease --dry-run --unreleased-version "${{ steps.get_next_version.outputs.nextStrict }}" > changelog-release.md
Expand Down

0 comments on commit f2cc00d

Please sign in to comment.