hotfix(release): use app tag for offline dashboard bundle lookup

This commit is contained in:
LoveLosita
2026-05-12 14:42:48 +08:00
parent 56a07e1fe9
commit 381cce3735

View File

@@ -58,7 +58,8 @@ jobs:
toolchain_root="${MAIBOT_NODE_TOOLCHAIN_ROOT:-/srv/gitea-runner-maibot/toolchains/node}"
dist_bundle_root="${MAIBOT_PREBUILT_DASHBOARD_ROOT:-/srv/gitea-runner-maibot/prebuilt-dashboard}"
dist_bundle="${dist_bundle_root}/${MAIBOT_REPO_SHA}.tar.gz"
commit_sha="${APP_TAG:-$(git -C "$MAIBOT_WORKTREE" rev-parse --short=10 HEAD)}"
dist_bundle="${dist_bundle_root}/${commit_sha}.tar.gz"
if [ -d "$toolchain_root/bin" ]; then
export PATH="$toolchain_root/bin:$PATH"