Skip to content

Commit

Permalink
ci: modified bump version workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
unl0ck committed May 7, 2024
1 parent c472030 commit ee77425
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/bumpVersion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -39,16 +40,22 @@ jobs:
run: |
echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
- name: Commit and Tag
uses: stefanzweifel/git-auto-commit-action@v5
with:
token: ${{ github.token }}
fromTag: ${{ env.OLD_VERSIONE }}
toTag: ${{ env.TAG_NAME }}
tagging_message: ${{ env.TAG_NAME }}
commit_message: "ci: ${{ env.OLD_VERSIONE }} -> ${{ env.TAG_NAME }}"

- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v4
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Commit and Tag
uses: stefanzweifel/git-auto-commit-action@v5
with:
tagging_message: ${{ env.TAG_NAME }}
commit_message: "ci: ${{ env.OLD_VERSIONE }} -> ${{ env.TAG_NAME }}"
commit_message: "docs: ${{ env.OLD_VERSIONE }} -> ${{ env.TAG_NAME }}"


0 comments on commit ee77425

Please sign in to comment.