Skip to content

Commit 8a57f5a

Browse files
authored
Merge pull request #46 from flynneva/fix/tag_logic
continue on if tag already exists on remote
2 parents bdbbfd8 + 330c0eb commit 8a57f5a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/bump.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
run: |
2626
npm version minor --force -m "Version %s"
2727
git remote add gh-origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
28-
git push gh-origin HEAD:main --tags
28+
git push gh-origin HEAD:main --tags == 1 || tag_exists=1
29+
if [ ${tag_exists:-0} -eq 1 ]; then echo "Tag already exists, continuing on"; fi
2930
version=$(npm run env | grep npm_package_version | cut -d '=' -f 2)
3031
echo "version=$version" >> $GITHUB_ENV
3132
env:

0 commit comments

Comments
 (0)