From 3cdae2a10dbe0d8ffee7ed2d60de5ba23cd5faab Mon Sep 17 00:00:00 2001 From: Sam Lijin Date: Thu, 5 Dec 2024 18:41:31 -0800 Subject: [PATCH] again --- .github/workflows/release.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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