File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 9090 git config user.name "github-actions[bot]"
9191 git config user.email "github-actions[bot]@users.noreply.github.com"
9292
93- # Check if tag already exists locally or remotely
94- if git rev-parse "${{ steps.next_version.outputs.version }}" >/dev/null 2>&1 ; then
93+ # Check if tag already exists locally
94+ if git tag -l "${{ steps.next_version.outputs.version }}" | grep -q . ; then
9595 echo "Tag ${{ steps.next_version.outputs.version }} already exists locally"
9696 echo "tag_created=false" >> $GITHUB_OUTPUT
9797 exit 0
@@ -111,6 +111,7 @@ jobs:
111111 echo "tag_created=true" >> $GITHUB_OUTPUT
112112
113113 - name : Create GitHub Release
114+ if : steps.create_tag.outputs.tag_created == 'true'
114115 uses : softprops/action-gh-release@v2
115116 with :
116117 tag_name : ${{ steps.next_version.outputs.version }}
You can’t perform that action at this time.
0 commit comments