Skip to content

Commit 294c570

Browse files
authored
chore: upgrade and recompile agentic workflows to v0.83.1 (#197)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
1 parent 5727e6f commit 294c570

2 files changed

Lines changed: 116 additions & 90 deletions

File tree

‎.github/workflows/agentics-maintenance.yml‎

Lines changed: 80 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
1-
# ___ _ _
2-
# / _ \ | | (_)
3-
# | |_| | __ _ ___ _ __ | |_ _ ___
1+
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.83.1). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
2+
#
3+
# ___ _ _
4+
# / _ \ | | (_)
5+
# | |_| | __ _ ___ _ __ | |_ _ ___
46
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
5-
# | | | | (_| | __/ | | | |_| | (__
7+
# | | | | (_| | __/ | | | |_| | (__
68
# \_| |_/\__, |\___|_| |_|\__|_|\___|
79
# __/ |
8-
# _ _ |___/
10+
# _ _ |___/
911
# | | | | / _| |
1012
# | | | | ___ _ __ _ __| |_| | _____ ____
1113
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
1214
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
1315
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
1416
#
15-
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.79.6). DO NOT EDIT.
1617
#
1718
# To regenerate this workflow, run:
1819
# gh aw compile
1920
# Not all edits will cause changes to this file.
2021
#
2122
# For more information: https://github.github.com/gh-aw/introduction/overview/
2223
#
23-
# Alternative regeneration methods:
24-
# make recompile
25-
#
26-
# Or use the gh-aw CLI directly:
27-
# ./gh-aw compile --validate --verbose
28-
#
29-
# The workflow is generated when any workflow uses the 'expires' field
30-
# in create-discussions, create-issues, or create-pull-request safe-outputs configuration.
31-
# Schedule frequency is automatically determined by the shortest expiration time.
24+
# This file defines the generated agentic maintenance workflow for this repository.
25+
# It runs scheduled cleanup for expiring safe outputs and supports manual maintenance operations.
26+
#
27+
# This workflow is generated automatically when workflows use expiring safe outputs
28+
# or when repository maintenance features are enabled in .github/workflows/aw.json.
29+
#
30+
# To disable maintenance workflow generation, set in .github/workflows/aw.json:
31+
# {"maintenance": false}
32+
#
33+
# Agentic maintenance docs:
34+
# https://github.github.com/gh-aw/reference/ephemerals/#manual-maintenance-operations
3235
#
3336
name: Agentic Maintenance
3437

@@ -84,16 +87,14 @@ on:
8487
permissions: {}
8588

8689
jobs:
87-
close-expired-entities:
90+
close-expired-discussions:
8891
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
8992
runs-on: ubuntu-slim
9093
permissions:
9194
discussions: write
92-
issues: write
93-
pull-requests: write
9495
steps:
9596
- name: Setup Scripts
96-
uses: github/gh-aw-actions/setup@v0.79.6
97+
uses: github/gh-aw-actions/setup@v0.83.1
9798
with:
9899
destination: ${{ runner.temp }}/gh-aw/actions
99100

@@ -105,6 +106,16 @@ jobs:
105106
setupGlobals(core, github, context, exec, io, getOctokit);
106107
const { main } = require('${{ runner.temp }}/gh-aw/actions/close_expired_discussions.cjs');
107108
await main();
109+
close-expired-issues:
110+
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
111+
runs-on: ubuntu-slim
112+
permissions:
113+
issues: write
114+
steps:
115+
- name: Setup Scripts
116+
uses: github/gh-aw-actions/[email protected]
117+
with:
118+
destination: ${{ runner.temp }}/gh-aw/actions
108119

109120
- name: Close expired issues
110121
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
@@ -114,6 +125,16 @@ jobs:
114125
setupGlobals(core, github, context, exec, io, getOctokit);
115126
const { main } = require('${{ runner.temp }}/gh-aw/actions/close_expired_issues.cjs');
116127
await main();
128+
close-expired-pull-requests:
129+
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
130+
runs-on: ubuntu-slim
131+
permissions:
132+
pull-requests: write
133+
steps:
134+
- name: Setup Scripts
135+
uses: github/gh-aw-actions/[email protected]
136+
with:
137+
destination: ${{ runner.temp }}/gh-aw/actions
117138

118139
- name: Close expired pull requests
119140
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
@@ -131,7 +152,7 @@ jobs:
131152
actions: write
132153
steps:
133154
- name: Setup Scripts
134-
uses: github/gh-aw-actions/setup@v0.79.6
155+
uses: github/gh-aw-actions/setup@v0.83.1
135156
with:
136157
destination: ${{ runner.temp }}/gh-aw/actions
137158

@@ -155,12 +176,12 @@ jobs:
155176
operation: ${{ steps.record.outputs.operation }}
156177
steps:
157178
- name: Checkout repository
158-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
179+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
159180
with:
160181
persist-credentials: false
161182

162183
- name: Setup Scripts
163-
uses: github/gh-aw-actions/setup@v0.79.6
184+
uses: github/gh-aw-actions/setup@v0.83.1
164185
with:
165186
destination: ${{ runner.temp }}/gh-aw/actions
166187

@@ -175,9 +196,9 @@ jobs:
175196
await main();
176197
177198
- name: Install gh-aw
178-
uses: github/gh-aw-actions/setup-cli@v0.79.6
199+
uses: github/gh-aw-actions/setup-cli@v0.83.1
179200
with:
180-
version: v0.79.6
201+
version: v0.83.1
181202

182203
- name: Run operation
183204
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
@@ -195,7 +216,9 @@ jobs:
195216
196217
- name: Record outputs
197218
id: record
198-
run: echo "operation=${{ inputs.operation }}" >> "$GITHUB_OUTPUT"
219+
env:
220+
GH_AW_OPERATION: ${{ inputs.operation }}
221+
run: echo "operation=$GH_AW_OPERATION" >> "$GITHUB_OUTPUT"
199222

200223
update_pull_request_branches:
201224
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'update_pull_request_branches' && (!(github.event.repository.fork)) }}
@@ -205,7 +228,7 @@ jobs:
205228
pull-requests: write
206229
steps:
207230
- name: Setup Scripts
208-
uses: github/gh-aw-actions/setup@v0.79.6
231+
uses: github/gh-aw-actions/setup@v0.83.1
209232
with:
210233
destination: ${{ runner.temp }}/gh-aw/actions
211234

@@ -244,14 +267,15 @@ jobs:
244267
run_url: ${{ steps.record.outputs.run_url }}
245268
steps:
246269
- name: Checkout actions folder
247-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
270+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
248271
with:
249272
sparse-checkout: |
250273
actions
274+
clean: false
251275
persist-credentials: false
252276

253277
- name: Setup Scripts
254-
uses: github/gh-aw-actions/setup@v0.79.6
278+
uses: github/gh-aw-actions/setup@v0.83.1
255279
with:
256280
destination: ${{ runner.temp }}/gh-aw/actions
257281

@@ -280,7 +304,9 @@ jobs:
280304
281305
- name: Record outputs
282306
id: record
283-
run: echo "run_url=${{ inputs.run_url }}" >> "$GITHUB_OUTPUT"
307+
env:
308+
GH_AW_RUN_URL: ${{ inputs.run_url }}
309+
run: echo "run_url=$GH_AW_RUN_URL" >> "$GITHUB_OUTPUT"
284310

285311
create_labels:
286312
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'create_labels' && (!(github.event.repository.fork)) }}
@@ -290,12 +316,12 @@ jobs:
290316
issues: write
291317
steps:
292318
- name: Checkout repository
293-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
319+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
294320
with:
295321
persist-credentials: false
296322

297323
- name: Setup Scripts
298-
uses: github/gh-aw-actions/setup@v0.79.6
324+
uses: github/gh-aw-actions/setup@v0.83.1
299325
with:
300326
destination: ${{ runner.temp }}/gh-aw/actions
301327

@@ -310,9 +336,9 @@ jobs:
310336
await main();
311337
312338
- name: Install gh-aw
313-
uses: github/gh-aw-actions/setup-cli@v0.79.6
339+
uses: github/gh-aw-actions/setup-cli@v0.83.1
314340
with:
315-
version: v0.79.6
341+
version: v0.83.1
316342

317343
- name: Create missing labels
318344
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
@@ -336,12 +362,12 @@ jobs:
336362
issues: write
337363
steps:
338364
- name: Checkout repository
339-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
365+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
340366
with:
341367
persist-credentials: false
342368

343369
- name: Setup Scripts
344-
uses: github/gh-aw-actions/setup@v0.79.6
370+
uses: github/gh-aw-actions/setup@v0.83.1
345371
with:
346372
destination: ${{ runner.temp }}/gh-aw/actions
347373

@@ -356,13 +382,13 @@ jobs:
356382
await main();
357383
358384
- name: Install gh-aw
359-
uses: github/gh-aw-actions/setup-cli@v0.79.6
385+
uses: github/gh-aw-actions/setup-cli@v0.83.1
360386
with:
361-
version: v0.79.6
387+
version: v0.83.1
362388

363389
- name: Restore activity report logs cache
364390
id: activity_report_logs_cache
365-
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
391+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
366392
with:
367393
path: ./.cache/gh-aw/activity-report-logs
368394
key: ${{ runner.os }}-activity-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
@@ -377,16 +403,16 @@ jobs:
377403
GH_AW_CMD_PREFIX: gh aw
378404
run: |
379405
${GH_AW_CMD_PREFIX} logs \
380-
--repo "${{ github.repository }}" \
406+
--repo "$GITHUB_REPOSITORY" \
381407
--start-date -1w \
382-
--count 100 \
408+
--count 500 \
383409
--output ./.cache/gh-aw/activity-report-logs \
384410
--format markdown \
385-
> ./.cache/gh-aw/activity-report-logs/report.md
411+
--report-file ./.cache/gh-aw/activity-report-logs/report.md
386412
387413
- name: Save activity report logs cache
388414
if: ${{ always() }}
389-
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
415+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
390416
with:
391417
path: ./.cache/gh-aw/activity-report-logs
392418
key: ${{ steps.activity_report_logs_cache.outputs.cache-primary-key }}
@@ -441,12 +467,12 @@ jobs:
441467
issues: write
442468
steps:
443469
- name: Checkout repository
444-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
470+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
445471
with:
446472
persist-credentials: false
447473

448474
- name: Setup Scripts
449-
uses: github/gh-aw-actions/setup@v0.79.6
475+
uses: github/gh-aw-actions/setup@v0.83.1
450476
with:
451477
destination: ${{ runner.temp }}/gh-aw/actions
452478

@@ -461,13 +487,13 @@ jobs:
461487
await main();
462488
463489
- name: Install gh-aw
464-
uses: github/gh-aw-actions/setup-cli@v0.79.6
490+
uses: github/gh-aw-actions/setup-cli@v0.83.1
465491
with:
466-
version: v0.79.6
492+
version: v0.83.1
467493

468494
- name: Restore forecast report logs cache
469495
id: forecast_report_logs_cache
470-
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
496+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
471497
with:
472498
path: ./.github/aw/logs
473499
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
@@ -486,7 +512,7 @@ jobs:
486512
run: |
487513
mkdir -p ./.cache/gh-aw/forecast
488514
set +e
489-
${GH_AW_CMD_PREFIX} forecast --repo "${{ github.repository }}" --timeout 30 --verbose --json > ./.cache/gh-aw/forecast/report.json
515+
${GH_AW_CMD_PREFIX} forecast --repo "$GITHUB_REPOSITORY" --timeout 30 --verbose --json > ./.cache/gh-aw/forecast/report.json
490516
forecast_exit_code=$?
491517
set -e
492518
if [ "${forecast_exit_code}" -eq 124 ]; then
@@ -513,7 +539,7 @@ jobs:
513539
514540
- name: Save forecast report logs cache
515541
if: ${{ always() }}
516-
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
542+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
517543
with:
518544
path: ./.github/aw/logs
519545
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
@@ -538,7 +564,7 @@ jobs:
538564
issues: write
539565
steps:
540566
- name: Setup Scripts
541-
uses: github/gh-aw-actions/setup@v0.79.6
567+
uses: github/gh-aw-actions/setup@v0.83.1
542568
with:
543569
destination: ${{ runner.temp }}/gh-aw/actions
544570

@@ -570,12 +596,12 @@ jobs:
570596
issues: write
571597
steps:
572598
- name: Checkout repository
573-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
599+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
574600
with:
575601
persist-credentials: false
576602

577603
- name: Setup Scripts
578-
uses: github/gh-aw-actions/setup@v0.79.6
604+
uses: github/gh-aw-actions/setup@v0.83.1
579605
with:
580606
destination: ${{ runner.temp }}/gh-aw/actions
581607

@@ -590,9 +616,9 @@ jobs:
590616
await main();
591617
592618
- name: Install gh-aw
593-
uses: github/gh-aw-actions/setup-cli@v0.79.6
619+
uses: github/gh-aw-actions/setup-cli@v0.83.1
594620
with:
595-
version: v0.79.6
621+
version: v0.83.1
596622

597623
- name: Validate workflows and file issue on findings
598624
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0

0 commit comments

Comments
 (0)