Skip to content

Commit c802997

Browse files
committed
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 <davthomp@redhat.com>
1 parent 9e452d7 commit c802997

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ jobs:
109109
if-no-files-found: error
110110
- name: Publish to GH Release Tab
111111
uses: "marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0"
112+
if: ${{ github.event_name != 'schedule' && inputs.publishPreRelease != 'true' }}
112113
with:
113114
repo_token: "${{ secrets.GITHUB_TOKEN }}"
114-
automatic_release_tag: "${{ github.event_name != 'schedule' && inputs.publishPreRelease != 'true' && env.EXT_VERSION || null }}"
115+
automatic_release_tag: "${{ env.EXT_VERSION }}"
115116
draft: true
116117
files: |
117118
vscode-yaml-${{ env.EXT_VERSION }}-${{github.run_number}}*.vsix

0 commit comments

Comments
 (0)