Skip to content

Commit

Permalink
ci: fix bug on the create tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec4r committed May 25, 2022
1 parent 00aad42 commit a40a5ab
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ jobs:
outputs:
version: ${{ steps.tag_version.outputs.new_version }}
previous_tag: ${{ steps.tag_version.outputs.previous_tag }}
bump_commit_sha: ${{ steps.bumpversion.outputs.commit_hash }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}
- name: Get next version
Expand All @@ -31,6 +32,7 @@ jobs:
pip install bumpversion
bumpversion --new-version ${{ steps.tag_version.outputs.new_version }} setup.cfg
- name: Commit bumpversion
id: bumpversion
if: steps.tag_version.outputs.new_version
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand All @@ -44,12 +46,15 @@ jobs:
tag: ${{ steps.tag_version.outputs.new_tag }}
changelog: ${{ steps.tag_version.outputs.changelog }}
steps:
- uses: actions/checkout@v2
- name: Bump version and push tag
- uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}
- name: Create tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_sha: ${{ needs.bumpversion.outputs.bump_commit_sha }}
default_bump: false
default_prerelease_bump: false
- name: Create a GitHub release
Expand Down

0 comments on commit a40a5ab

Please sign in to comment.