Skip to content

Commit a263199

Browse files
lostindarkCopilot
andcommitted
fix: write highlights to /tmp/gh-aw/agent/ for artifact collection
Write highlights to /tmp/gh-aw/agent/release-highlights.md which is automatically collected in the agent artifact. No safe outputs needed for file storage — just shell write + noop. Release workflow downloads the agent artifact to get the file. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent bbb00f9 commit a263199

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/release-highlights.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,22 @@ Dependency updates and internal improvements to keep things running smoothly.
9090

9191
### 5. Save Highlights
9292

93-
**CRITICAL**: Write the highlights to a file using shell. This is how you save your output:
93+
**CRITICAL**: Write the highlights to `/tmp/gh-aw/agent/release-highlights.md` using shell. This path is automatically collected as a workflow artifact.
9494

9595
```bash
96-
cat > /tmp/gh-aw/release-highlights.md << 'HIGHLIGHTS_EOF'
96+
cat > /tmp/gh-aw/agent/release-highlights.md << 'HIGHLIGHTS_EOF'
9797
## 🌟 Release Highlights
9898
9999
[Your complete markdown highlights here]
100100
HIGHLIGHTS_EOF
101101
```
102102

103-
Write the file to `/tmp/gh-aw/release-highlights.md`. This path is automatically collected as a workflow artifact. After writing the file, call `noop` and stop.
104-
103+
After writing the file, call `noop` and stop:
105104
```
106-
safeoutputs/noop(message="Release highlights written to /tmp/gh-aw/release-highlights.md")
105+
safeoutputs/noop(message="Release highlights saved to /tmp/gh-aw/agent/release-highlights.md")
107106
```
108107

109108
**❌ DO NOT:**
109+
- Call any tool after noop
110110
- Investigate how safe outputs work internally
111111
- Explore the workflow's lock.yml or CJS files
112-
- Call any tool after writing the file and calling noop

0 commit comments

Comments
 (0)