Skip to content

Commit 709c535

Browse files
committed
chore: update compiled workflows via e2e.sh
1 parent edcbb4e commit 709c535

83 files changed

Lines changed: 7144 additions & 3208 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/aw/actions-lock.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
"version": "v9",
2121
"sha": "373c709c69115d41ff229c7e5df9f8788daa9553"
2222
},
23-
"github/gh-aw-actions/setup-cli@v0.68.3": {
23+
"github/gh-aw-actions/setup-cli@v0.71.0": {
2424
"repo": "github/gh-aw-actions/setup-cli",
25-
"version": "v0.68.3",
26-
"sha": "ba90f2186d7ad780ec640f364005fa24e797b360"
25+
"version": "v0.71.0",
26+
"sha": "49157453228f9641824955e35cbeccbca74ee0fd"
2727
},
28-
"github/gh-aw-actions/setup@v0.68.3": {
28+
"github/gh-aw-actions/setup@v0.71.0": {
2929
"repo": "github/gh-aw-actions/setup",
30-
"version": "v0.68.3",
31-
"sha": "ba90f2186d7ad780ec640f364005fa24e797b360"
30+
"version": "v0.71.0",
31+
"sha": "49157453228f9641824955e35cbeccbca74ee0fd"
3232
},
3333
"github/gh-aw/actions/setup@v0.43.22": {
3434
"repo": "github/gh-aw/actions/setup",

.github/workflows/agentics-maintenance.yml

Lines changed: 153 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
1313
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
1414
#
15-
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.68.3). DO NOT EDIT.
15+
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.71.0). DO NOT EDIT.
1616
#
1717
# To regenerate this workflow, run:
1818
# gh aw compile
@@ -50,6 +50,8 @@ on:
5050
- 'upgrade'
5151
- 'safe_outputs'
5252
- 'create_labels'
53+
- 'activity_report'
54+
- 'close_agentic_workflows_issues'
5355
- 'clean_cache_memories'
5456
- 'validate'
5557
run_url:
@@ -60,7 +62,7 @@ on:
6062
workflow_call:
6163
inputs:
6264
operation:
63-
description: 'Optional maintenance operation to run (disable, enable, update, upgrade, safe_outputs, create_labels, clean_cache_memories, validate)'
65+
description: 'Optional maintenance operation to run (disable, enable, update, upgrade, safe_outputs, create_labels, activity_report, close_agentic_workflows_issues, clean_cache_memories, validate)'
6466
required: false
6567
type: string
6668
default: ''
@@ -89,7 +91,7 @@ jobs:
8991
pull-requests: write
9092
steps:
9193
- name: Setup Scripts
92-
uses: github/gh-aw-actions/setup@ba90f2186d7ad780ec640f364005fa24e797b360 # v0.68.3
94+
uses: github/gh-aw-actions/setup@49157453228f9641824955e35cbeccbca74ee0fd # v0.71.0
9395
with:
9496
destination: ${{ runner.temp }}/gh-aw/actions
9597

@@ -127,7 +129,7 @@ jobs:
127129
actions: write
128130
steps:
129131
- name: Setup Scripts
130-
uses: github/gh-aw-actions/setup@ba90f2186d7ad780ec640f364005fa24e797b360 # v0.68.3
132+
uses: github/gh-aw-actions/setup@49157453228f9641824955e35cbeccbca74ee0fd # v0.71.0
131133
with:
132134
destination: ${{ runner.temp }}/gh-aw/actions
133135

@@ -141,7 +143,7 @@ jobs:
141143
await main();
142144
143145
run_operation:
144-
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation != '' && inputs.operation != 'safe_outputs' && inputs.operation != 'create_labels' && inputs.operation != 'clean_cache_memories' && inputs.operation != 'validate' && (!(github.event.repository.fork)) }}
146+
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation != '' && inputs.operation != 'safe_outputs' && inputs.operation != 'create_labels' && inputs.operation != 'activity_report' && inputs.operation != 'close_agentic_workflows_issues' && inputs.operation != 'clean_cache_memories' && inputs.operation != 'validate' && (!(github.event.repository.fork)) }}
145147
runs-on: ubuntu-slim
146148
permissions:
147149
actions: write
@@ -156,7 +158,7 @@ jobs:
156158
persist-credentials: false
157159

158160
- name: Setup Scripts
159-
uses: github/gh-aw-actions/setup@ba90f2186d7ad780ec640f364005fa24e797b360 # v0.68.3
161+
uses: github/gh-aw-actions/setup@49157453228f9641824955e35cbeccbca74ee0fd # v0.71.0
160162
with:
161163
destination: ${{ runner.temp }}/gh-aw/actions
162164

@@ -171,9 +173,9 @@ jobs:
171173
await main();
172174
173175
- name: Install gh-aw
174-
uses: github/gh-aw-actions/setup-cli@ba90f2186d7ad780ec640f364005fa24e797b360 # v0.68.3
176+
uses: github/gh-aw-actions/setup-cli@49157453228f9641824955e35cbeccbca74ee0fd # v0.71.0
175177
with:
176-
version: v0.68.3
178+
version: v0.71.0
177179

178180
- name: Run operation
179181
uses: actions/github-script@373c709c69115d41ff229c7e5df9f8788daa9553 # v9
@@ -213,7 +215,7 @@ jobs:
213215
persist-credentials: false
214216

215217
- name: Setup Scripts
216-
uses: github/gh-aw-actions/setup@ba90f2186d7ad780ec640f364005fa24e797b360 # v0.68.3
218+
uses: github/gh-aw-actions/setup@49157453228f9641824955e35cbeccbca74ee0fd # v0.71.0
217219
with:
218220
destination: ${{ runner.temp }}/gh-aw/actions
219221

@@ -257,7 +259,7 @@ jobs:
257259
persist-credentials: false
258260

259261
- name: Setup Scripts
260-
uses: github/gh-aw-actions/setup@ba90f2186d7ad780ec640f364005fa24e797b360 # v0.68.3
262+
uses: github/gh-aw-actions/setup@49157453228f9641824955e35cbeccbca74ee0fd # v0.71.0
261263
with:
262264
destination: ${{ runner.temp }}/gh-aw/actions
263265

@@ -272,9 +274,9 @@ jobs:
272274
await main();
273275
274276
- name: Install gh-aw
275-
uses: github/gh-aw-actions/setup-cli@ba90f2186d7ad780ec640f364005fa24e797b360 # v0.68.3
277+
uses: github/gh-aw-actions/setup-cli@49157453228f9641824955e35cbeccbca74ee0fd # v0.71.0
276278
with:
277-
version: v0.68.3
279+
version: v0.71.0
278280

279281
- name: Create missing labels
280282
uses: actions/github-script@373c709c69115d41ff229c7e5df9f8788daa9553 # v9
@@ -288,6 +290,142 @@ jobs:
288290
const { main } = require('${{ runner.temp }}/gh-aw/actions/create_labels.cjs');
289291
await main();
290292
293+
activity_report:
294+
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'activity_report' && (!(github.event.repository.fork)) }}
295+
runs-on: ubuntu-slim
296+
timeout-minutes: 120
297+
permissions:
298+
actions: read
299+
contents: read
300+
issues: write
301+
steps:
302+
- name: Checkout repository
303+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
304+
with:
305+
persist-credentials: false
306+
307+
- name: Setup Scripts
308+
uses: github/gh-aw-actions/setup@49157453228f9641824955e35cbeccbca74ee0fd # v0.71.0
309+
with:
310+
destination: ${{ runner.temp }}/gh-aw/actions
311+
312+
- name: Check admin/maintainer permissions
313+
uses: actions/github-script@373c709c69115d41ff229c7e5df9f8788daa9553 # v9
314+
with:
315+
github-token: ${{ secrets.GITHUB_TOKEN }}
316+
script: |
317+
const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
318+
setupGlobals(core, github, context, exec, io, getOctokit);
319+
const { main } = require('${{ runner.temp }}/gh-aw/actions/check_team_member.cjs');
320+
await main();
321+
322+
- name: Install gh-aw
323+
uses: github/gh-aw-actions/setup-cli@49157453228f9641824955e35cbeccbca74ee0fd # v0.71.0
324+
with:
325+
version: v0.71.0
326+
327+
- name: Restore activity report logs cache
328+
id: activity_report_logs_cache
329+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
330+
with:
331+
path: ./.cache/gh-aw/activity-report-logs
332+
key: ${{ runner.os }}-activity-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
333+
restore-keys: |
334+
${{ runner.os }}-activity-report-logs-${{ github.repository }}-
335+
${{ runner.os }}-activity-report-logs-
336+
- name: Download activity report logs
337+
timeout-minutes: 20
338+
shell: bash
339+
env:
340+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
341+
GH_AW_CMD_PREFIX: gh aw
342+
run: |
343+
${GH_AW_CMD_PREFIX} logs \
344+
--repo "${{ github.repository }}" \
345+
--start-date -1w \
346+
--count 100 \
347+
--output ./.cache/gh-aw/activity-report-logs \
348+
--format markdown \
349+
> ./.cache/gh-aw/activity-report-logs/report.md
350+
351+
- name: Save activity report logs cache
352+
if: ${{ always() }}
353+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
354+
with:
355+
path: ./.cache/gh-aw/activity-report-logs
356+
key: ${{ steps.activity_report_logs_cache.outputs.cache-primary-key }}
357+
358+
- name: Generate activity report issue
359+
uses: actions/github-script@373c709c69115d41ff229c7e5df9f8788daa9553 # v9
360+
with:
361+
github-token: ${{ secrets.GITHUB_TOKEN }}
362+
script: |
363+
const fs = require('node:fs');
364+
const reportPath = './.cache/gh-aw/activity-report-logs/report.md';
365+
if (!fs.existsSync(reportPath)) {
366+
core.warning('Activity report markdown not found at ' + reportPath + '; skipping issue creation.');
367+
return;
368+
}
369+
let reportBody = '';
370+
try {
371+
reportBody = fs.readFileSync(reportPath, 'utf8').trim();
372+
} catch (error) {
373+
core.warning('Failed to read activity report markdown at ' + reportPath + ': ' + error.message);
374+
return;
375+
}
376+
if (!reportBody) {
377+
core.warning('Activity report markdown is empty at ' + reportPath + '; skipping issue creation.');
378+
return;
379+
}
380+
const repoSlug = context.repo.owner + '/' + context.repo.repo;
381+
const body = [
382+
'### Agentic workflow activity report',
383+
'',
384+
'Repository: ' + repoSlug,
385+
'Generated at: ' + new Date().toISOString(),
386+
'',
387+
reportBody,
388+
].join('\n');
389+
const createdIssue = await github.rest.issues.create({
390+
owner: context.repo.owner,
391+
repo: context.repo.repo,
392+
title: '[aw] agentic status report',
393+
body,
394+
labels: ['agentic-workflows'],
395+
});
396+
core.info('Created issue #' + createdIssue.data.number + ': ' + createdIssue.data.html_url);
397+
398+
close_agentic_workflows_issues:
399+
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'close_agentic_workflows_issues' && (!(github.event.repository.fork)) }}
400+
runs-on: ubuntu-slim
401+
permissions:
402+
issues: write
403+
steps:
404+
- name: Setup Scripts
405+
uses: github/gh-aw-actions/setup@49157453228f9641824955e35cbeccbca74ee0fd # v0.71.0
406+
with:
407+
destination: ${{ runner.temp }}/gh-aw/actions
408+
409+
- name: Check admin/maintainer permissions
410+
uses: actions/github-script@373c709c69115d41ff229c7e5df9f8788daa9553 # v9
411+
with:
412+
github-token: ${{ secrets.GITHUB_TOKEN }}
413+
script: |
414+
const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
415+
setupGlobals(core, github, context, exec, io, getOctokit);
416+
const { main } = require('${{ runner.temp }}/gh-aw/actions/check_team_member.cjs');
417+
await main();
418+
419+
- name: Close no-repro agentic-workflows issues
420+
uses: actions/github-script@373c709c69115d41ff229c7e5df9f8788daa9553 # v9
421+
with:
422+
github-token: ${{ secrets.GITHUB_TOKEN }}
423+
script: |
424+
const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
425+
setupGlobals(core, github, context, exec, io, getOctokit);
426+
const { main } = require('${{ runner.temp }}/gh-aw/actions/close_agentic_workflows_issues.cjs');
427+
await main();
428+
291429
validate_workflows:
292430
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'validate' && (!(github.event.repository.fork)) }}
293431
runs-on: ubuntu-latest
@@ -301,7 +439,7 @@ jobs:
301439
persist-credentials: false
302440

303441
- name: Setup Scripts
304-
uses: github/gh-aw-actions/setup@ba90f2186d7ad780ec640f364005fa24e797b360 # v0.68.3
442+
uses: github/gh-aw-actions/setup@49157453228f9641824955e35cbeccbca74ee0fd # v0.71.0
305443
with:
306444
destination: ${{ runner.temp }}/gh-aw/actions
307445

@@ -316,9 +454,9 @@ jobs:
316454
await main();
317455
318456
- name: Install gh-aw
319-
uses: github/gh-aw-actions/setup-cli@ba90f2186d7ad780ec640f364005fa24e797b360 # v0.68.3
457+
uses: github/gh-aw-actions/setup-cli@49157453228f9641824955e35cbeccbca74ee0fd # v0.71.0
320458
with:
321-
version: v0.68.3
459+
version: v0.71.0
322460

323461
- name: Validate workflows and file issue on findings
324462
uses: actions/github-script@373c709c69115d41ff229c7e5df9f8788daa9553 # v9

0 commit comments

Comments
 (0)