From 31dc8cd37a9b1be83a333ea77c3879c17b1af2e1 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 3 Oct 2025 08:47:56 -0400 Subject: [PATCH] Another fix for prereleases In order to skip tagging the prerelease version, we need to entirely skip the publish to GitHub Releases step. Passing a null tag causes the step to error, which ends the build. Signed-off-by: David Thompson --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 231d115d..4f53a652 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -109,9 +109,10 @@ jobs: if-no-files-found: error - name: Publish to GH Release Tab uses: "marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0" + if: ${{ github.event_name != 'schedule' && inputs.publishPreRelease != 'true' }} with: repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "${{ github.event_name != 'schedule' && inputs.publishPreRelease != 'true' && env.EXT_VERSION || null }}" + automatic_release_tag: "${{ env.EXT_VERSION }}" draft: true files: | vscode-yaml-${{ env.EXT_VERSION }}-${{github.run_number}}*.vsix