Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
sxlijin committed Dec 6, 2024
1 parent 63d5afc commit 3cdae2a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3cdae2a

Please sign in to comment.