mirror of
https://github.com/stablyai/orca.git
synced 2026-10-07 00:02:29 +00:00
fix(release): pass the draft-verify tag on Windows pwsh (#21851)
The Windows matrix defaults to pwsh, so assert-github-release-is-draft.mjs received an empty argv and failed with "tag is required" after the signed installer was already uploaded. Force bash, interpolate the tag in YAML, and fall back to env TAG.
This commit is contained in:
@@ -91,7 +91,9 @@ export async function restorePublishedDesktopReleasesToDraft({
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const tag = process.argv[2]
|
||||
// Why env TAG: the Windows release-cut matrix uses pwsh, which does not
|
||||
// expand bash-style "$TAG" in argv. The step still exports TAG.
|
||||
const tag = process.argv[2] || process.env.TAG
|
||||
const token = process.env.GH_TOKEN || process.env.GITHUB_TOKEN
|
||||
const repo = process.env.GITHUB_REPOSITORY || 'stablyai/orca'
|
||||
const restored = await restorePublishedDesktopReleasesToDraft({
|
||||
|
||||
Reference in New Issue
Block a user