Skip to content

Update Checkout Lean Same Branch ref to actual branch name#28

Merged
Martin-Molinero merged 1 commit into
QuantConnect:masterfrom
jhonabreul:fix-lean-same-branch-ref
Jun 18, 2026
Merged

Update Checkout Lean Same Branch ref to actual branch name#28
Martin-Molinero merged 1 commit into
QuantConnect:masterfrom
jhonabreul:fix-lean-same-branch-ref

Conversation

@jhonabreul

Copy link
Copy Markdown
Contributor

Description

The Checkout Lean Same Branch step used ref: ${{ github.ref }}, which resolves to a fully-qualified ref (e.g. refs/heads/... or refs/pull/.../merge) instead of a plain branch name, so the matching Lean branch is not found.

This changes it to ref: ${{ github.head_ref || github.ref_name }}, which resolves to the actual branch name on both push and pull_request events.

🤖 Generated with Claude Code

Use `github.head_ref || github.ref_name` instead of `github.ref` so the
Lean checkout resolves to the actual branch name across push and pull
request events.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Martin-Molinero Martin-Molinero merged commit aaac181 into QuantConnect:master Jun 18, 2026
1 check passed
@jhonabreul jhonabreul deleted the fix-lean-same-branch-ref branch June 18, 2026 17:23
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.

2 participants