Skip to content

Commit 762f567

Browse files
authored
Upgrade gh-aw to v0.37.15 (#102)
1 parent cd6e5e4 commit 762f567

File tree

6 files changed

+233
-213
lines changed

6 files changed

+233
-213
lines changed

.github/aw/create-agentic-workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ safe-outputs:
304304
---
305305
306306
<!-- Edit the file linked below to modify the agent without recompilation. Feel free to move the entire markdown body to that file. -->
307-
@./agentics/<workflow-id>.md
307+
{{#runtime-import agentics/<workflow-id>.md}}
308308
```
309309

310310
**Note**: This example omits `workflow_dispatch:` (auto-added by compiler), `timeout-minutes:` (has sensible default), and `engine:` (Copilot is default). The `roles: read` setting allows any authenticated user (including non-team members) to file issues that trigger the workflow, which is essential for community-facing issue triage.

.github/aw/update-agentic-workflow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ If no agentics file exists, edit the markdown body of the workflow file.
322322

323323
## Prompt Editing Without Recompilation
324324

325-
**Key Feature**: If the workflow uses runtime imports (e.g., `@./agentics/<workflow-id>.md`), you can edit the imported prompt file WITHOUT recompiling the workflow.
325+
**Key Feature**: If the workflow uses runtime imports (e.g., `{{#runtime-import agentics/<workflow-id>.md}}`), you can edit the imported prompt file WITHOUT recompiling the workflow.
326326

327327
**When to use this**:
328328
- Improving agent instructions
@@ -331,7 +331,7 @@ If no agentics file exists, edit the markdown body of the workflow file.
331331
- Adding security notices
332332

333333
**How to do it**:
334-
1. Check if the workflow has a runtime import: `@./agentics/<workflow-id>.md`
334+
1. Check if the workflow has a runtime import: `{{#runtime-import agentics/<workflow-id>.md}}`
335335
2. If yes, edit that file directly - no compilation needed!
336336
3. Changes take effect on the next workflow run
337337

.github/aw/upgrade-agentic-workflows.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ Read the ENTIRE content of this file carefully before proceeding. Follow the ins
2323
- `compile` → compile all workflows
2424
- `compile <workflow-name>` → compile a specific workflow
2525

26-
:::note[Command Execution]
27-
When running in GitHub Copilot Cloud, you don't have direct access to `gh aw` CLI commands. Instead, use the **agentic-workflows** MCP tool:
28-
- `fix` tool → apply automatic codemods to fix deprecated fields
29-
- `compile` tool → compile workflows
30-
31-
When running in other environments with `gh aw` CLI access, prefix commands with `gh aw` (e.g., `gh aw compile`).
32-
33-
These tools provide the same functionality through the MCP server without requiring GitHub CLI authentication.
34-
:::
26+
> [!NOTE]
27+
> **Command Execution**
28+
>
29+
> When running in GitHub Copilot Cloud, you don't have direct access to `gh aw` CLI commands. Instead, use the **agentic-workflows** MCP tool:
30+
> - `fix` tool → apply automatic codemods to fix deprecated fields
31+
> - `compile` tool → compile workflows
32+
>
33+
> When running in other environments with `gh aw` CLI access, prefix commands with `gh aw` (e.g., `gh aw compile`).
34+
>
35+
> These tools provide the same functionality through the MCP server without requiring GitHub CLI authentication.
3536
3637
## Instructions
3738

@@ -143,7 +144,7 @@ After fixing all errors:
143144
3. **Refresh Agent and Instruction Files**
144145

145146
After successfully upgrading workflows, refresh the agent files and instructions to ensure you have the latest versions:
146-
- Run `gh aw init` to update all agent files (`.github/agents/*.md`) and instruction files (`.github/aw/github-agentic-workflows.md`)
147+
- Run `gh aw init --push` to update all agent files (`.github/agents/*.md`) and instruction files (`.github/aw/github-agentic-workflows.md`), then automatically commit and push the changes
147148
- This ensures that agents and instructions are aligned with the new gh-aw version
148149
- The command will preserve your existing configuration while updating to the latest templates
149150

@@ -190,12 +191,12 @@ Upgraded all agentic workflows to gh-aw version [VERSION].
190191
- ✅ No compilation errors or warnings
191192

192193
### Post-Upgrade Steps
193-
- ✅ Refreshed agent files and instructions with `gh aw init`
194+
- ✅ Refreshed agent files and instructions with `gh aw init --push`
194195

195196
## Files Changed
196197
- Updated `.md` workflow files: [LIST]
197198
- Generated `.lock.yml` files: [LIST]
198-
- Updated agent files: [LIST] (if `gh aw init` was run)
199+
- Updated agent files: [LIST] (if `gh aw init --push` was run)
199200
```
200201
201202
### If Compilation Errors Cannot Be Fixed

.github/workflows/daily-workflow-sync.lock.yml

Lines changed: 72 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)