diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index efe9c974f..66ca53375 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,9 +42,9 @@ jobs: # - build-typescript-release # - build-vscode-release outputs: - should-run-publish-job: "" - should-run-publish-step: "" - should-run-publish-job2: ${{ false }} + should-run-publish-job: false + should-run-publish-step: true + should-run-publish-job2: ${{ startsWith(github.ref, 'refs/tags/') && 'true' }} should-run-publish-step2: ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/test-release') }} steps: - if: github.ref_type == 'tag' @@ -57,7 +57,7 @@ jobs: steps: - if: needs.all-builds.outputs.should-run-publish-job run: echo "should-run-publish-job true" - - if: needs.all-builds.outputs.should-run-publish-step + - if: needs.all-builds.outputs.should-run-publish-step == 'true' run: echo "should-run-publish-step true" - if: needs.all-builds.outputs.should-run-publish-job2 run: echo "should-run-publish-job2 true"