Skip to content

Fix check-deploy-branch workflow parse failure in publish.yaml#19

Draft
shielded-nate with Copilot wants to merge 3 commits into
rebased-copilot-enable-render-actionfrom
copilot/fix-check-deploy-branch
Draft

Fix check-deploy-branch workflow parse failure in publish.yaml#19
shielded-nate with Copilot wants to merge 3 commits into
rebased-copilot-enable-render-actionfrom
copilot/fix-check-deploy-branch

Conversation

Copilot AI commented Jun 19, 2026

Copy link
Copy Markdown

The check-deploy-branch job failed before evaluation due to a Bash heredoc parsing error in the branch-policy step. This blocked branch-gating logic and prevented the deploy workflow from progressing.

  • Root cause (workflow parser break)

    • In .github/workflows/publish.yaml, the inline Python heredoc terminator was indented, so Bash never matched <<'PY' and exited with unexpected end of file.
  • Change made (minimal, targeted)

    • Adjusted heredoc terminator placement in check-deploy-branch so the embedded Python block closes correctly and the should_deploy output can be set.
  • Code change

    if POLICY_RESPONSE="${policy_response}" BRANCH_NAME="${GITHUB_REF_NAME}" python - <<'PY'
      ...
    PY
    then
      echo "should_deploy=true" >> "${GITHUB_OUTPUT}"
    else
      echo "should_deploy=false" >> "${GITHUB_OUTPUT}"
    fi

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'check-deploy-branch' Fix check-deploy-branch workflow parse failure in publish.yaml Jun 19, 2026
Copilot AI requested a review from shielded-nate June 19, 2026 16:46
@shielded-nate shielded-nate changed the base branch from main to rebased-copilot-enable-render-action June 22, 2026 16:39
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