diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e582daf80..6b2cc3116 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,12 +42,23 @@ jobs: # - build-typescript-release # - build-vscode-release outputs: - should-run-publish-job: ${{ github.ref_type == 'tag' }} - should-run-publish-step: ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/test-release') }} + should-run-publish-job: false + should-run-publish-step: false + should-run-publish-job2: ${{ github.ref_type == 'tag' }} + should-run-publish-step2: ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/test-release') }} steps: - if: github.ref_type == 'tag' run: echo 'ref type is tag' - run: echo "::do-nothing::" >/dev/null + + debug-output: + runs-on: ubuntu-latest + needs: [all-builds] + 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 + run: echo "should-run-publish-step true" publish-to-pypi: environment: release