1212# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
1313# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
1414#
15- # This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.75.4 ). DO NOT EDIT.
15+ # This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.77.5 ). DO NOT EDIT.
1616#
1717# To regenerate this workflow, run:
1818# gh aw compile
9393 pull-requests : write
9494 steps :
9595 - name : Setup Scripts
96- uses : github/gh-aw-actions/setup@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
96+ uses : github/gh-aw-actions/setup@v0.77.5
9797 with :
9898 destination : ${{ runner.temp }}/gh-aw/actions
9999
@@ -131,7 +131,7 @@ jobs:
131131 actions : write
132132 steps :
133133 - name : Setup Scripts
134- uses : github/gh-aw-actions/setup@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
134+ uses : github/gh-aw-actions/setup@v0.77.5
135135 with :
136136 destination : ${{ runner.temp }}/gh-aw/actions
137137
@@ -160,7 +160,7 @@ jobs:
160160 persist-credentials : false
161161
162162 - name : Setup Scripts
163- uses : github/gh-aw-actions/setup@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
163+ uses : github/gh-aw-actions/setup@v0.77.5
164164 with :
165165 destination : ${{ runner.temp }}/gh-aw/actions
166166
@@ -175,9 +175,9 @@ jobs:
175175 await main();
176176
177177 - name : Install gh-aw
178- uses : github/gh-aw-actions/setup-cli@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
178+ uses : github/gh-aw-actions/setup-cli@v0.77.5
179179 with :
180- version : v0.75.4
180+ version : v0.77.5
181181
182182 - name : Run operation
183183 uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
@@ -205,7 +205,7 @@ jobs:
205205 pull-requests : write
206206 steps :
207207 - name : Setup Scripts
208- uses : github/gh-aw-actions/setup@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
208+ uses : github/gh-aw-actions/setup@v0.77.5
209209 with :
210210 destination : ${{ runner.temp }}/gh-aw/actions
211211
@@ -251,7 +251,7 @@ jobs:
251251 persist-credentials : false
252252
253253 - name : Setup Scripts
254- uses : github/gh-aw-actions/setup@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
254+ uses : github/gh-aw-actions/setup@v0.77.5
255255 with :
256256 destination : ${{ runner.temp }}/gh-aw/actions
257257
@@ -295,7 +295,7 @@ jobs:
295295 persist-credentials : false
296296
297297 - name : Setup Scripts
298- uses : github/gh-aw-actions/setup@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
298+ uses : github/gh-aw-actions/setup@v0.77.5
299299 with :
300300 destination : ${{ runner.temp }}/gh-aw/actions
301301
@@ -310,9 +310,9 @@ jobs:
310310 await main();
311311
312312 - name : Install gh-aw
313- uses : github/gh-aw-actions/setup-cli@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
313+ uses : github/gh-aw-actions/setup-cli@v0.77.5
314314 with :
315- version : v0.75.4
315+ version : v0.77.5
316316
317317 - name : Create missing labels
318318 uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
@@ -341,7 +341,7 @@ jobs:
341341 persist-credentials : false
342342
343343 - name : Setup Scripts
344- uses : github/gh-aw-actions/setup@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
344+ uses : github/gh-aw-actions/setup@v0.77.5
345345 with :
346346 destination : ${{ runner.temp }}/gh-aw/actions
347347
@@ -356,9 +356,9 @@ jobs:
356356 await main();
357357
358358 - name : Install gh-aw
359- uses : github/gh-aw-actions/setup-cli@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
359+ uses : github/gh-aw-actions/setup-cli@v0.77.5
360360 with :
361- version : v0.75.4
361+ version : v0.77.5
362362
363363 - name : Restore activity report logs cache
364364 id : activity_report_logs_cache
@@ -446,7 +446,7 @@ jobs:
446446 persist-credentials : false
447447
448448 - name : Setup Scripts
449- uses : github/gh-aw-actions/setup@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
449+ uses : github/gh-aw-actions/setup@v0.77.5
450450 with :
451451 destination : ${{ runner.temp }}/gh-aw/actions
452452
@@ -461,9 +461,9 @@ jobs:
461461 await main();
462462
463463 - name : Install gh-aw
464- uses : github/gh-aw-actions/setup-cli@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
464+ uses : github/gh-aw-actions/setup-cli@v0.77.5
465465 with :
466- version : v0.75.4
466+ version : v0.77.5
467467
468468 - name : Restore forecast report logs cache
469469 id : forecast_report_logs_cache
@@ -476,6 +476,7 @@ jobs:
476476 ${{ runner.os }}-forecast-report-logs-
477477
478478 - name : Generate forecast report
479+ id : generate_forecast_report
479480 shell : bash
480481 env :
481482 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -487,7 +488,20 @@ jobs:
487488 echo "::error::Missing run summary cache in .github/aw/logs after gh aw logs warm-up; cannot run forecast."
488489 exit 1
489490 fi
490- ${GH_AW_CMD_PREFIX} forecast --repo "${{ github.repository }}" --json 2> >(grep -Fv "forecast is an experimental command and may change without notice" >&2) > ./.cache/gh-aw/forecast/report.json
491+ set +e
492+ ${GH_AW_CMD_PREFIX} forecast --repo "${{ github.repository }}" --timeout 10 --json 2> >(grep -Fv "forecast is an experimental command and may change without notice" >&2) > ./.cache/gh-aw/forecast/report.json
493+ forecast_exit_code=$?
494+ set -e
495+ if [ "${forecast_exit_code}" -eq 124 ]; then
496+ echo '{"outcome":"timeout","message":"Forecast computation timed out after 10 minutes."}' > ./.cache/gh-aw/forecast/error.json
497+ echo "::error::Forecast computation timed out after 10 minutes."
498+ exit 1
499+ fi
500+ if [ "${forecast_exit_code}" -ne 0 ]; then
501+ echo '{"outcome":"error","message":"Forecast computation failed before producing a report."}' > ./.cache/gh-aw/forecast/error.json
502+ echo "::error::Forecast computation failed with exit code ${forecast_exit_code}."
503+ exit 1
504+ fi
491505
492506 - name : Save forecast report logs cache
493507 if : ${{ always() }}
@@ -497,7 +511,10 @@ jobs:
497511 key : ${{ steps.forecast_report_logs_cache.outputs.cache-primary-key }}
498512
499513 - name : Generate forecast issue
514+ if : ${{ always() }}
500515 uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
516+ env :
517+ FORECAST_STEP_OUTCOME : ${{ steps.generate_forecast_report.outcome }}
501518 with :
502519 github-token : ${{ secrets.GITHUB_TOKEN }}
503520 script : |
@@ -513,7 +530,7 @@ jobs:
513530 issues : write
514531 steps :
515532 - name : Setup Scripts
516- uses : github/gh-aw-actions/setup@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
533+ uses : github/gh-aw-actions/setup@v0.77.5
517534 with :
518535 destination : ${{ runner.temp }}/gh-aw/actions
519536
@@ -550,7 +567,7 @@ jobs:
550567 persist-credentials : false
551568
552569 - name : Setup Scripts
553- uses : github/gh-aw-actions/setup@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
570+ uses : github/gh-aw-actions/setup@v0.77.5
554571 with :
555572 destination : ${{ runner.temp }}/gh-aw/actions
556573
@@ -565,9 +582,9 @@ jobs:
565582 await main();
566583
567584 - name : Install gh-aw
568- uses : github/gh-aw-actions/setup-cli@9f050961da586148d135e113d8bb025185cdf2b8 # v0.75.4
585+ uses : github/gh-aw-actions/setup-cli@v0.77.5
569586 with :
570- version : v0.75.4
587+ version : v0.77.5
571588
572589 - name : Validate workflows and file issue on findings
573590 uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
0 commit comments