Skip to content

Commit 9673347

Browse files
authored
Merge branch 'main' into copilot/improve-integration-sample-data
2 parents e77aed4 + 8f198b0 commit 9673347

File tree

1 file changed

+40
-37
lines changed

1 file changed

+40
-37
lines changed

.github/workflows/compile-agentic-workflows.yml

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -123,47 +123,50 @@ jobs:
123123
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
124124
with:
125125
script: |
126+
const issueBody = [
127+
'## Problem',
128+
'',
129+
'The agentic workflow markdown files have been updated, but the lock files could not be automatically compiled.',
130+
'',
131+
'### Action Required',
132+
'',
133+
'Please compile the lock files locally:',
134+
'',
135+
'```bash',
136+
'# Install gh-aw extension (first time only)',
137+
'gh extension install github/gh-aw',
138+
'',
139+
'# Compile all agentic workflows',
140+
'cd .github/workflows',
141+
'gh aw compile news-article-generator.md',
142+
'',
143+
'# Commit and push the updated lock files',
144+
'git add *.lock.yml',
145+
'git commit -m "chore: recompile agentic workflow lock files"',
146+
'git push',
147+
'```',
148+
'',
149+
'### Files Affected',
150+
'',
151+
'- `.github/workflows/news-article-generator.md`',
152+
'- `.github/workflows/news-article-generator.lock.yml`',
153+
'',
154+
'### Why This Happened',
155+
'',
156+
'The gh-aw tool requires GitHub authentication and is not available in the automated workflow environment.',
157+
'',
158+
'### More Information',
159+
'',
160+
'- [GitHub Agentic Workflows Documentation](https://github.com/github/gh-aw/blob/main/.github/aw/github-agentic-workflows.md)',
161+
'- Triggered by: ' + (context.payload.head_commit?.message || 'Manual trigger'),
162+
'- Workflow run: ' + context.serverUrl + '/' + context.repo.owner + '/' + context.repo.repo + '/actions/runs/' + context.runId
163+
].join('\n');
164+
126165
const issue = await github.rest.issues.create({
127166
owner: context.repo.owner,
128167
repo: context.repo.repo,
129168
title: '⚠️ Agentic Workflow Lock Files Need Manual Compilation',
130-
body: `## Problem
131-
132-
The agentic workflow markdown files have been updated, but the lock files could not be automatically compiled.
133-
134-
### Action Required
135-
136-
Please compile the lock files locally:
137-
138-
\`\`\`bash
139-
# Install gh-aw extension (first time only)
140-
gh extension install github/gh-aw
141-
142-
# Compile all agentic workflows
143-
cd .github/workflows
144-
gh aw compile news-article-generator.md
145-
146-
# Commit and push the updated lock files
147-
git add *.lock.yml
148-
git commit -m "chore: recompile agentic workflow lock files"
149-
git push
150-
\`\`\`
151-
152-
### Files Affected
153-
154-
- \`.github/workflows/news-article-generator.md\`
155-
- \`.github/workflows/news-article-generator.lock.yml\`
156-
157-
### Why This Happened
158-
159-
The gh-aw tool requires GitHub authentication and is not available in the automated workflow environment.
160-
161-
### More Information
162-
163-
- [GitHub Agentic Workflows Documentation](https://github.com/github/gh-aw/blob/main/.github/aw/github-agentic-workflows.md)
164-
- Triggered by: ${context.payload.head_commit?.message || 'Manual trigger'}
165-
- Workflow run: ${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}
166-
`,
169+
body: issueBody,
167170
labels: ['infrastructure', 'automated-issue', 'needs-action']
168171
});
169172

0 commit comments

Comments
 (0)