diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9d857a7..96b9d78 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,12 +22,14 @@ jobs: git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" git tag "v${{ steps.determine-version.outputs.version }}" -a -m "Create new release" - git push origin "v${{ steps.determine-version.outputs.version }}" || echo "::set-output name=should_publish::false" + SHOULD_PUBLISH="true" + git push origin "v${{ steps.determine-version.outputs.version }}" || SHOULD_PUBLISH="false" + echo "::set-output name=should_publish::$SHOULD_PUBLISH" publish: runs-on: ubuntu-22.04 needs: tag - if: ${{ needs.tag.outputs.should_publish }} != "false" + if: ${{ needs.tag.outputs.should_publish }} == "true" steps: - uses: actions/checkout@v2