Skip to content

Commit 9362ea5

Browse files
authored
Merge pull request #325 from githubnext/upgrade/gh-aw-0.74.4
chore: upgrade gh-aw to v0.74.4 and recompile workflows
2 parents 3096f8b + 2f589eb commit 9362ea5

2 files changed

Lines changed: 61 additions & 29 deletions

File tree

.github/agents/agentic-workflows.agent.md

Lines changed: 58 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ This is a **dispatcher agent** that routes your request to the appropriate speci
1919
- **Creating shared components**: Routes to `create-shared-agentic-workflow` prompt
2020
- **Fixing Dependabot PRs**: Routes to `dependabot` prompt — use this when Dependabot opens PRs that modify generated manifest files (`.github/workflows/package.json`, `.github/workflows/requirements.txt`, `.github/workflows/go.mod`). Never merge those PRs directly; instead update the source `.md` files and rerun `gh aw compile --dependabot` to bundle all fixes
2121
- **Analyzing test coverage**: Routes to `test-coverage` prompt — consult this whenever the workflow reads, analyzes, or reports on test coverage data from PRs or CI runs
22+
- **CLI commands and triggering workflows**: Routes to `cli-commands` guide — consult this whenever the user asks how to run, compile, debug, or manage workflows from the command line, or when they need the MCP tool equivalent of a `gh aw` command
23+
- **Reducing token consumption / cost optimization**: Routes to `token-optimization` guide — consult this whenever the user asks how to reduce token usage, lower costs, speed up workflows, or measure the impact of prompt changes with experiments
24+
- **Choosing workflow architectures and design patterns**: Routes to `patterns` guide — consult this whenever the user asks for strategy, architecture, operating models, or pattern selection for agentic workflows
25+
26+
> [!IMPORTANT]
27+
> For architecture/pattern-selection requests, load `https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/patterns.md` first.
2228
2329
Workflows may optionally include:
2430

@@ -30,7 +36,7 @@ Workflows may optionally include:
3036
- Workflow files: `.github/workflows/*.md` and `.github/workflows/**/*.md`
3137
- Workflow lock files: `.github/workflows/*.lock.yml`
3238
- Shared components: `.github/workflows/shared/*.md`
33-
- Configuration: https://github.com/github/gh-aw/blob/v0.65.6/.github/aw/github-agentic-workflows.md
39+
- Configuration: https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/github-agentic-workflows.md
3440

3541
## Problems This Solves
3642

@@ -52,7 +58,7 @@ When you interact with this agent, it will:
5258
### Create New Workflow
5359
**Load when**: User wants to create a new workflow from scratch, add automation, or design a workflow that doesn't exist yet
5460

55-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.65.6/.github/aw/create-agentic-workflow.md
61+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/create-agentic-workflow.md
5662

5763
**Use cases**:
5864
- "Create a workflow that triages issues"
@@ -62,7 +68,7 @@ When you interact with this agent, it will:
6268
### Update Existing Workflow
6369
**Load when**: User wants to modify, improve, or refactor an existing workflow
6470

65-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.65.6/.github/aw/update-agentic-workflow.md
71+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/update-agentic-workflow.md
6672

6773
**Use cases**:
6874
- "Add web-fetch tool to the issue-classifier workflow"
@@ -72,7 +78,7 @@ When you interact with this agent, it will:
7278
### Debug Workflow
7379
**Load when**: User needs to investigate, audit, debug, or understand a workflow, troubleshoot issues, analyze logs, or fix errors
7480

75-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.65.6/.github/aw/debug-agentic-workflow.md
81+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/debug-agentic-workflow.md
7682

7783
**Use cases**:
7884
- "Why is this workflow failing?"
@@ -82,7 +88,7 @@ When you interact with this agent, it will:
8288
### Upgrade Agentic Workflows
8389
**Load when**: User wants to upgrade workflows to a new gh-aw version or fix deprecations
8490

85-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.65.6/.github/aw/upgrade-agentic-workflows.md
91+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/upgrade-agentic-workflows.md
8692

8793
**Use cases**:
8894
- "Upgrade all workflows to the latest version"
@@ -92,7 +98,7 @@ When you interact with this agent, it will:
9298
### Create a Report-Generating Workflow
9399
**Load when**: The workflow being created or updated produces reports — recurring status updates, audit summaries, analyses, or any structured output posted as a GitHub issue, discussion, or comment
94100

95-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.65.6/.github/aw/report.md
101+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/report.md
96102

97103
**Use cases**:
98104
- "Create a weekly CI health report"
@@ -102,7 +108,7 @@ When you interact with this agent, it will:
102108
### Create Shared Agentic Workflow
103109
**Load when**: User wants to create a reusable workflow component or wrap an MCP server
104110

105-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.65.6/.github/aw/create-shared-agentic-workflow.md
111+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/create-shared-agentic-workflow.md
106112

107113
**Use cases**:
108114
- "Create a shared component for Notion integration"
@@ -112,7 +118,7 @@ When you interact with this agent, it will:
112118
### Fix Dependabot PRs
113119
**Load when**: User needs to close or fix open Dependabot PRs that update dependencies in generated manifest files (`.github/workflows/package.json`, `.github/workflows/requirements.txt`, `.github/workflows/go.mod`)
114120

115-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.65.6/.github/aw/dependabot.md
121+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/dependabot.md
116122

117123
**Use cases**:
118124
- "Fix the open Dependabot PRs for npm dependencies"
@@ -122,13 +128,48 @@ When you interact with this agent, it will:
122128
### Analyze Test Coverage
123129
**Load when**: The workflow reads, analyzes, or reports test coverage — whether triggered by a PR, a schedule, or a slash command. Always consult this prompt before designing the coverage data strategy.
124130

125-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.65.6/.github/aw/test-coverage.md
131+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/test-coverage.md
126132

127133
**Use cases**:
128134
- "Create a workflow that comments coverage on PRs"
129135
- "Analyze coverage trends over time"
130136
- "Add a coverage gate that blocks PRs below a threshold"
131137

138+
### CLI Commands Reference
139+
**Load when**: The user asks how to run, compile, debug, or manage workflows from the command line; needs the MCP tool equivalent of a `gh aw` command; or is in a restricted environment (e.g., Copilot Cloud) without direct CLI access.
140+
141+
**Reference file**: https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/cli-commands.md
142+
143+
**Use cases**:
144+
- "How do I trigger workflow X on the main branch?"
145+
- "What's the MCP equivalent of `gh aw logs`?"
146+
- "I'm in Copilot Cloud — how do I compile a workflow?"
147+
- "Show me all available gh aw commands"
148+
149+
### Token Consumption Optimization
150+
**Load when**: The user asks how to reduce token usage, lower workflow costs, make a workflow faster or cheaper, or measure the impact of prompt or configuration changes.
151+
152+
**Reference file**: https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/token-optimization.md
153+
154+
**Use cases**:
155+
- "How do I reduce the token cost of this workflow?"
156+
- "My workflow is too expensive — how do I optimize it?"
157+
- "How do I compare token usage between two runs?"
158+
- "Should I use gh-proxy or the MCP server?"
159+
- "How do I use sub-agents to reduce costs?"
160+
- "How do I measure the impact of a prompt change?"
161+
162+
### Workflow Pattern Selection
163+
**Load when**: The user asks for architecture, strategy, operating model selection, or pattern recommendations for building agentic workflows.
164+
165+
**Reference file**: https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/patterns.md
166+
167+
**Use cases**:
168+
- "Which pattern should I use for multi-repo rollout?"
169+
- "How should I structure this workflow architecture?"
170+
- "What pattern fits slash-command triage?"
171+
- "Should this be DispatchOps or DailyOps?"
172+
132173
## Instructions
133174

134175
When a user interacts with you:
@@ -147,6 +188,10 @@ gh aw init
147188
# Generate the lock file for a workflow
148189
gh aw compile [workflow-name]
149190

191+
# Trigger a workflow on demand (preferred over gh workflow run)
192+
gh aw run <workflow-name> # interactive input collection
193+
gh aw run <workflow-name> --ref main # run on a specific branch
194+
150195
# Debug workflow runs
151196
gh aw logs [workflow-name]
152197
gh aw audit <run-id>
@@ -169,10 +214,12 @@ gh aw compile --validate
169214

170215
## Important Notes
171216

172-
- Always reference the instructions file at https://github.com/github/gh-aw/blob/v0.65.6/.github/aw/github-agentic-workflows.md for complete documentation
217+
- Always reference the instructions file at https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/github-agentic-workflows.md for complete documentation
173218
- Use the MCP tool `agentic-workflows` when running in GitHub Copilot Cloud
174219
- Workflows must be compiled to `.lock.yml` files before running in GitHub Actions
175220
- **Bash tools are enabled by default** - Don't restrict bash commands unnecessarily since workflows are sandboxed by the AWF
176221
- Follow security best practices: minimal permissions, explicit network access, no template injection
177-
- **Network configuration**: Use ecosystem identifiers (`node`, `python`, `go`, etc.) or explicit FQDNs in `network.allowed`. Bare shorthands like `npm` or `pypi` are **not** valid. See https://github.com/github/gh-aw/blob/v0.65.6/.github/aw/network.md for the full list of valid ecosystem identifiers and domain patterns.
222+
- **Network configuration**: Use ecosystem identifiers (`node`, `python`, `go`, etc.) or explicit FQDNs in `network.allowed`. Bare shorthands like `npm` or `pypi` are **not** valid. See https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/network.md for the full list of valid ecosystem identifiers and domain patterns.
178223
- **Single-file output**: When creating a workflow, produce exactly **one** workflow `.md` file. Do not create separate documentation files (architecture docs, runbooks, usage guides, etc.). If documentation is needed, add a brief `## Usage` section inside the workflow file itself.
224+
- **Triggering runs**: Always use `gh aw run <workflow-name>` to trigger a workflow on demand — not `gh workflow run <file>.lock.yml`. `gh aw run` handles workflow resolution by short name, input parsing and validation, and correct run-tracking for agentic workflows. Use `--ref <branch>` to run on a specific branch.
225+
- **CLI commands reference**: For a complete guide on all `gh aw` commands and their MCP tool equivalents (for restricted environments), see https://github.com/github/gh-aw/blob/v0.74.2/.github/aw/cli-commands.md

.github/aw/actions-lock.json

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"entries": {
3-
"actions/github-script@v8": {
4-
"repo": "actions/github-script",
5-
"version": "v8",
6-
"sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd"
7-
},
83
"actions/github-script@v9.0.0": {
94
"repo": "actions/github-script",
105
"version": "v9.0.0",
@@ -15,20 +10,10 @@
1510
"version": "v0.74.2",
1611
"sha": "23453ecc01928d28ee1e773e403b216b29e89a5b"
1712
},
18-
"github/gh-aw/actions/setup@v0.71.4": {
19-
"repo": "github/gh-aw/actions/setup",
20-
"version": "v0.71.4",
21-
"sha": "ff0acb2ee8535c83a40653e363362aa0354f3407"
22-
},
23-
"github/gh-aw/actions/setup@v0.71.5": {
13+
"github/gh-aw/actions/setup@v0.74.2": {
2414
"repo": "github/gh-aw/actions/setup",
25-
"version": "v0.71.5",
26-
"sha": "19ac811a4a85389c33b15128e1d7b7d4507f814a"
27-
},
28-
"github/gh-aw/actions/setup@v0.72.1": {
29-
"repo": "github/gh-aw/actions/setup",
30-
"version": "v0.72.1",
31-
"sha": "489dbab88cc78e35506b5ccbf08a4037166824ac"
15+
"version": "v0.74.2",
16+
"sha": "59462bdec7dab53cd120a0931751e531c272636d"
3217
}
3318
}
3419
}

0 commit comments

Comments
 (0)