This commit is contained in:
Joel Wachsler 2022-07-10 21:12:32 +00:00
parent e6f90c4a6b
commit 48143b83f7

View File

@ -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