From df30c7ec18461a99f1a70e4a458ed3b17bcc8e7f Mon Sep 17 00:00:00 2001 From: Jhonathan Abreu Date: Thu, 18 Jun 2026 13:04:26 -0400 Subject: [PATCH] Update Checkout Lean Same Branch ref to actual branch name 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 --- .github/workflows/gh-actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-actions.yml b/.github/workflows/gh-actions.yml index 793a6df..1b6c2d6 100644 --- a/.github/workflows/gh-actions.yml +++ b/.github/workflows/gh-actions.yml @@ -29,7 +29,7 @@ jobs: uses: actions/checkout@v2 continue-on-error: true with: - ref: ${{ github.ref }} + ref: ${{ github.head_ref || github.ref_name }} repository: QuantConnect/Lean path: Lean