Skip to content

Commit

Permalink
Merge pull request #46 from flynneva/fix/tag_logic
Browse files Browse the repository at this point in the history
continue on if tag already exists on remote
  • Loading branch information
flynneva authored Jun 18, 2021
2 parents bdbbfd8 + 330c0eb commit 8a57f5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
run: |
npm version minor --force -m "Version %s"
git remote add gh-origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git push gh-origin HEAD:main --tags
git push gh-origin HEAD:main --tags == 1 || tag_exists=1
if [ ${tag_exists:-0} -eq 1 ]; then echo "Tag already exists, continuing on"; fi
version=$(npm run env | grep npm_package_version | cut -d '=' -f 2)
echo "version=$version" >> $GITHUB_ENV
env:
Expand Down

0 comments on commit 8a57f5a

Please sign in to comment.