Fix deploy-gh-pages workflow: extract inline Python to separate script#2
Merged
Conversation
The workflow YAML was invalid because the Python heredoc contained a multi-line HTML string with lines starting at column 1, breaking out of the YAML literal block scalar (run: |). This caused GitHub Actions to fail with 0 jobs in 0s. Fix: Move the build logic into scripts/build-gh-pages.py and call it from the workflow step. Co-authored-by: stev4501 <34610768+stev4501@users.noreply.github.com> Agent-Logs-Url: https://github.com/stev4501/Hormone-experts/sessions/c533b682-3119-418b-8e42-09559a5a8a65
Copilot
AI
changed the title
[WIP] Fix workflow failure in option A
Fix deploy-gh-pages workflow YAML parse failure
Mar 21, 2026
Copilot
AI
changed the title
Fix deploy-gh-pages workflow YAML parse failure
Fix deploy-gh-pages workflow: extract inline Python to separate script
Mar 21, 2026
Owner
|
New |
1 similar comment
Owner
|
New |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
deploy-gh-pages.ymlworkflow fails instantly (0s, 0 jobs) because the inline Python heredoc contains unindented HTML lines that break YAML block scalar parsing.scripts/build-gh-pages.py— identical logic, no YAML escaping issuesrun: |heredoc torun: python3 scripts/build-gh-pages.pygh-pages-dist/to.gitignoreThe root cause: lines like
<html lang="en">at column 1 inside arun: |block are interpreted as YAML keys, not string content.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.