You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/aw/github-agentic-workflows.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,18 +214,18 @@ The YAML frontmatter supports these fields:
214
214
The `custom` engine allows you to define your own GitHub Actions steps instead of using an AI processor. Each step in the `steps` array follows standard GitHub Actions step syntax with `name`, `uses`/`run`, `with`, `env`, etc. This is useful for deterministic workflows that don't require AI processing.
215
215
216
216
**Environment Variables Available to Custom Engines:**
217
-
217
+
218
218
Custom engine steps have access to the following environment variables:
219
-
219
+
220
220
- **`$GH_AW_PROMPT`**: Path to the generated prompt file (`/tmp/gh-aw/aw-prompts/prompt.txt`) containing the markdown content from the workflow. This file contains the natural language instructions that would normally be sent to an AI processor. Custom engines can read this file to access the workflow's markdown content programmatically.
221
221
- **`$GH_AW_SAFE_OUTPUTS`**: Path to the safe outputs file (when safe-outputs are configured). Used for writing structured output that gets processed automatically.
222
222
- **`$GH_AW_MAX_TURNS`**: Maximum number of turns/iterations (when max-turns is configured in engine config).
223
-
223
+
224
224
Example of accessing the prompt content:
225
225
```bash
226
226
# Read the workflow prompt content
227
227
cat $GH_AW_PROMPT
228
-
228
+
229
229
# Process the prompt content in a custom step
230
230
- name: Process workflow instructions
231
231
run: |
@@ -253,7 +253,7 @@ The YAML frontmatter supports these fields:
253
253
log-level: debug # Optional: debug, info (default), warn, error
0 commit comments