diff --git a/.github/workflows/test-release-tagging.yml b/.github/workflows/test-release-tagging.yml index ed7795ea..fff4ff5e 100644 --- a/.github/workflows/test-release-tagging.yml +++ b/.github/workflows/test-release-tagging.yml @@ -41,10 +41,14 @@ jobs: version=${{ steps.get_version.outputs.version }} if git rev-parse "v$version" >/dev/null 2>&1; then echo "Tag v$version already exists." + echo "::set-output name=exists::true" exit 0 + else + echo "::set-output name=exists::false" fi - name: Create and push tag + if: steps.check_tag.outputs.exists == 'false' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: |