fix(release.sh): define REPO variable for tea CLI --repo flag
release.sh used $REPO in the tea releases create command (line 133) but never defined it, causing 'unbound variable' under set -u. Define REPO from GITEA_OWNER/GITEA_REPO env vars (same pattern as the verify_asset function at line 147). This is the v0.8.x zero-asset root cause's sibling bug — tea releases create failed silently on REPO unbound, but the script's error handling surfaced it. ---ci--- project: orca phase: 0 milestone: v0.11 status: ship ---/ci---
This commit is contained in:
@@ -39,6 +39,11 @@ for env_file in "$REPO_ROOT/.env" "$PWD/.env" "./.env"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# --- gitea repo resolution ------------------------------------------------
|
||||||
|
# REPO is the tea-CLI repo slug (owner/repo). tea resolves login from its
|
||||||
|
# config (~/.config/tea/config.yml) and the repo slug from --repo.
|
||||||
|
REPO="${GITEA_OWNER:-coreci}/${GITEA_REPO:-orca}"
|
||||||
|
|
||||||
# --- helpers --------------------------------------------------------------
|
# --- helpers --------------------------------------------------------------
|
||||||
|
|
||||||
err() { echo "release: error: $*" >&2; exit 1; }
|
err() { echo "release: error: $*" >&2; exit 1; }
|
||||||
|
|||||||
Reference in New Issue
Block a user