-
Notifications
You must be signed in to change notification settings - Fork 43
Document runtime markdown loading: when recompilation is required vs optional #12754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Created new guide: guides/editing-workflows.md - Explains when markdown body can be edited without recompilation - Explains when frontmatter changes require recompilation - Added practical examples and quick reference table - Updated workflow-structure.md to reference new guide - Updated markdown.md with editing tips - Added FAQ entry about editing on GitHub.com - Updated compilation-process.md with tip about runtime loading - All documentation builds successfully with no errors Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
| order: 5 | ||
| --- | ||
|
|
||
| Agentic workflows consist of two distinct parts with different editing requirements: the **YAML frontmatter** (configuration) and the **markdown body** (AI instructions). Understanding when changes require recompilation helps you iterate quickly and efficiently. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot add refence to agentic authoring of workflows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added reference to Authoring Workflows with AI guide in commit 9fd290e.
| Workflow files (`.md`) are compiled into GitHub Actions workflow files (`.lock.yml`). The compilation process: | ||
|
|
||
| - **Embeds frontmatter** directly into the lock file (changes require recompilation) | ||
| - **References the markdown body** at runtime via `{{#runtime-import}}` macro (changes do NOT require recompilation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot don't mention internal impl details
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed {{#runtime-import}} macro reference and simplified to "loads the markdown body at runtime from the source file" in commit 9fd290e.
| ### Recompilation Workflow | ||
|
|
||
| ```bash | ||
| # 1. Clone repository locally | ||
| git clone https://github.com/your-org/your-repo.git | ||
| cd your-repo | ||
|
|
||
| # 2. Edit the frontmatter in .github/workflows/my-workflow.md | ||
| vim .github/workflows/my-workflow.md | ||
|
|
||
| # 3. Recompile the workflow | ||
| gh aw compile my-workflow | ||
|
|
||
| # 4. Review changes | ||
| git diff .github/workflows/my-workflow.lock.yml | ||
|
|
||
| # 5. Commit and push | ||
| git add .github/workflows/my-workflow.md .github/workflows/my-workflow.lock.yml | ||
| git commit -m "Update workflow configuration" | ||
| git push origin main | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot remove lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the Recompilation Workflow section in commit 9fd290e.
|
|
||
| Use `needs.activation.outputs.text` for sanitized user input instead. | ||
|
|
||
| ## Best Practices |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot remove section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the Best Practices section in commit 9fd290e.
| - Auditability: Changes to compiled workflows are visible in git history | ||
| - Reproducibility: Anyone can see the exact configuration | ||
|
|
||
| ## Troubleshooting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot remove section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the Troubleshooting section in commit 9fd290e.
- Added reference to Authoring Workflows with AI guide - Removed internal implementation details (runtime-import macro) - Removed Recompilation Workflow section (redundant) - Removed Best Practices section (covered elsewhere) - Removed Troubleshooting section (belongs in troubleshooting docs) - Documentation builds successfully Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|

Plan: Update Documentation with Editing Tips
{{#runtime-import}}macromake build-docsto ensure no errorsOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.