mirror of
https://github.com/Quad4-Software/MeshChatX.git
synced 2026-08-18 09:49:09 -04:00
fix(ci): update GitHub draft release script to set GH_REPO from GITHUB_REPOSITORY if not defined
This commit is contained in:
parent
9b91c6c31b
commit
328bb766bc
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue