Skip to content

Commit

Permalink
Merge pull request #42 from bjk7119/develop
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
bjk7119 authored Jul 27, 2021
2 parents ad6b4a1 + 099554f commit 0e9f1de
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ jobs:
NEW_TAG: ${{ steps.get_release.outputs.tag_name }}
run: |
pip install --upgrade bumpversion
LAST_TAGS=$(git for-each-ref refs/tags/ --count=2 --sort=-v:refname --format="%(refname:short)")
echo $LAST_TAGS
LAST_ONE=$(echo $LAST_TAGS | cut -d' ' -f 2)
LAST_TWO_TAGS=$(git for-each-ref refs/tags/ --count=2 --sort=-v:refname --format="%(refname:short)")
LAST_ONE=$(echo $LAST_TWO_TAGS | cut -d' ' -f 2)
last_version=$(echo ${LAST_ONE//v/""})
echo ${last_version}
echo Last version: ${last_version}
new_version=$(echo ${NEW_TAG//v/""})
echo ${new_version}
echo New version: ${new_version}
git config --local user.name "github-actions[bot]"
bumpversion --current-version $last_version --new-version $new_version setup.py
- name: update changelog with gren
Expand Down

0 comments on commit 0e9f1de

Please sign in to comment.