Skip to content

ci: quote GITHUB_BASE_REF and fall back to GITHUB_REF_NAME - #434

Merged
HDembinski merged 1 commit into
boostorg:developfrom
henryiii:henryiii/fix-base-ref
Jul 23, 2026
Merged

ci: quote GITHUB_BASE_REF and fall back to GITHUB_REF_NAME#434
HDembinski merged 1 commit into
boostorg:developfrom
henryiii:henryiii/fix-base-ref

Conversation

@henryiii

Copy link
Copy Markdown
Contributor

🤖 AI text below 🤖

GITHUB_BASE_REF is only set for pull_request events. On push builds (superproject_cmake.yml) it is empty, so -b consumed --depth and the clone failed. All six superproject clone lines now use "${GITHUB_BASE_REF:-$GITHUB_REF_NAME}": PR builds keep using the base branch, and push builds fall back to the pushed branch (master/develop), which matches the superproject branch names.

Fixes #424

…builds

GITHUB_BASE_REF is only set for pull_request events, so push builds
cloned the superproject with an empty branch name and -b ate --depth.

Fixes boostorg#424

Assisted-by: ClaudeCode:claude-opus-4.8
@HDembinski
HDembinski merged commit b3485c5 into boostorg:develop Jul 23, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GITHUB_BASE_REF isn't set if it's not a PR

2 participants