Skip to content

Commit 96437d7

Browse files
authored
Fix e2e-install test failing on tag pushes (#304)
1 parent 13baa91 commit 96437d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/e2e-install-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ KEEP_DATA=false bash scripts/uninstall.sh 2>/dev/null || true
3636
# Phase 2: Install from source
3737
# =============================================================================
3838
info "Phase 2: Installing from source..."
39-
BRANCH=$(git rev-parse --abbrev-ref HEAD)
39+
# Use the ref GitHub provides; on tag pushes rev-parse returns a detached "HEAD"
40+
BRANCH="${GITHUB_REF_NAME:-$(git rev-parse --abbrev-ref HEAD)}"
4041
# Build CLI from source too when CLI_BRANCH is set (e.g., for testing unreleased CLI features)
4142
BRANCH="$BRANCH" CLI_BRANCH="${CLI_BRANCH:-}" bash scripts/install.sh
4243

0 commit comments

Comments
 (0)