Skip to content

Harden BuildHomeBlocksDeps checkout ref resolution for stale/invalid branch inputs#162

Draft
Copilot wants to merge 6 commits into
dev/v6.xfrom
copilot/fix-build-home-blocks-deps
Draft

Harden BuildHomeBlocksDeps checkout ref resolution for stale/invalid branch inputs#162
Copilot wants to merge 6 commits into
dev/v6.xfrom
copilot/fix-build-home-blocks-deps

Conversation

Copilot AI commented Jun 8, 2026

Copy link
Copy Markdown

BuildHomeBlocksDeps was failing before build execution because actions/checkout was given a non-existent ref (stable/v6.x). This change makes ref selection resilient so workflow dispatches and callers don’t hard-fail on stale branch inputs.

  • Ref resolution before checkout

    • Added a Resolve checkout ref step in .github/workflows/build_dependencies.yml (BuildHomeBlocksDeps).
    • Resolution logic:
      • use github.ref when inputs.branch is empty,
      • accept full refs (refs/...) directly,
      • for branch names, verify remote existence in the current repo,
      • fallback to github.ref with a warning when invalid/missing.
  • Unified checkout behavior

    • Updated both checkout paths to consume steps.resolve-ref.outputs.checkout_ref:
      • Retrieve Code
      • Retrieve Recipe
    • Prevents early workflow failure when caller-provided inputs.branch is stale.
- name: Retrieve Code
  uses: actions/checkout@v4
  with:
    ref: ${{ steps.resolve-ref.outputs.checkout_ref }}

Copilot AI changed the title [WIP] Fix failing GitHub Actions job BuildHomeBlocksDeps Harden BuildHomeBlocksDeps checkout ref resolution for stale/invalid branch inputs Jun 8, 2026
Copilot AI requested a review from shosseinimotlagh June 8, 2026 18:29
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