Skip to content

Commit

Permalink
update to kill builds with wrong listing
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh committed Jun 29, 2024
1 parent 1dfd961 commit b15133f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true
- run: |
If (("Preview", "") -notcontains ${{ steps.gitversion.outputs.GitVersion_PreReleaseLabel }}) {
return 1
}
shell: pwsh
build:
runs-on: ubuntu-latest
Expand Down
8 changes: 7 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,10 @@ if ($versionInfo.PreReleaseTag -eq "") {
} else {
Write-Output "Publishing PreRelease"
gh release create $versionText .\output\$ZipName --generate-notes --generate-notes --prerelease --discussion-category "General"
}
}

$GitVersion_PreReleaseLabel = "Preview"

If (("Preview", "") -notcontains $GitVersion_PreReleaseLabel) {
return 1
}

0 comments on commit b15133f

Please sign in to comment.