fix(ci): update GitHub draft release script to set GH_REPO from GITHUB_REPOSITORY if not defined

This commit is contained in:
Ivan
2026-04-24 14:03:50 -05:00
parent 9b91c6c31b
commit 328bb766bc

View File

@@ -18,6 +18,10 @@ fi
export GH_TOKEN
if [ -z "${GH_REPO:-}" ] && [ -n "${GITHUB_REPOSITORY:-}" ]; then
export GH_REPO="$GITHUB_REPOSITORY"
fi
if ! gh release view "$TAG" >/dev/null 2>&1; then
gh release create "$TAG" --draft --title "$TAG" --notes "Automated draft release. Review assets and provenance before publishing."
fi