1- #
21# ___ _ _
32# / _ \ | | (_)
43# | |_| | __ _ ___ _ __ | |_ _ ___
1312# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
1413# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
1514#
16- # This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.57.2 ). DO NOT EDIT.
15+ # This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.64.3 ). DO NOT EDIT.
1716#
1817# To regenerate this workflow, run:
1918# gh aw compile
4948 - ' enable'
5049 - ' update'
5150 - ' upgrade'
51+ - ' safe_outputs'
52+ run_url :
53+ description : ' Run URL or run ID to replay safe outputs from (e.g. https://github.com/owner/repo/actions/runs/12345 or 12345). Required when operation is safe_outputs.'
54+ required : false
55+ type : string
56+ default : ' '
5257
5358permissions : {}
5459
@@ -62,39 +67,39 @@ jobs:
6267 pull-requests : write
6368 steps :
6469 - name : Setup Scripts
65- uses : github/gh-aw/ actions/setup@32b3a711a9ee97d38e3989c90af0385aff0066a7 # v0.57.2
70+ uses : github/gh-aw- actions/setup@84dc9c12e0d955a200911a3a07c3f5dd96a175d7 # v0.64.3
6671 with :
67- destination : /opt /gh-aw/actions
72+ destination : ${{ runner.temp }} /gh-aw/actions
6873
6974 - name : Close expired discussions
7075 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
7176 with :
7277 script : |
73- const { setupGlobals } = require('/opt /gh-aw/actions/setup_globals.cjs');
78+ const { setupGlobals } = require('${{ runner.temp }} /gh-aw/actions/setup_globals.cjs');
7479 setupGlobals(core, github, context, exec, io);
75- const { main } = require('/opt /gh-aw/actions/close_expired_discussions.cjs');
80+ const { main } = require('${{ runner.temp }} /gh-aw/actions/close_expired_discussions.cjs');
7681 await main();
7782
7883 - name : Close expired issues
7984 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
8085 with :
8186 script : |
82- const { setupGlobals } = require('/opt /gh-aw/actions/setup_globals.cjs');
87+ const { setupGlobals } = require('${{ runner.temp }} /gh-aw/actions/setup_globals.cjs');
8388 setupGlobals(core, github, context, exec, io);
84- const { main } = require('/opt /gh-aw/actions/close_expired_issues.cjs');
89+ const { main } = require('${{ runner.temp }} /gh-aw/actions/close_expired_issues.cjs');
8590 await main();
8691
8792 - name : Close expired pull requests
8893 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
8994 with :
9095 script : |
91- const { setupGlobals } = require('/opt /gh-aw/actions/setup_globals.cjs');
96+ const { setupGlobals } = require('${{ runner.temp }} /gh-aw/actions/setup_globals.cjs');
9297 setupGlobals(core, github, context, exec, io);
93- const { main } = require('/opt /gh-aw/actions/close_expired_pull_requests.cjs');
98+ const { main } = require('${{ runner.temp }} /gh-aw/actions/close_expired_pull_requests.cjs');
9499 await main();
95100
96101 run_operation :
97- if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.operation != '' && !github.event.repository.fork }}
102+ if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.operation != '' && github.event.inputs.operation != 'safe_outputs' && !github.event.repository.fork }}
98103 runs-on : ubuntu-slim
99104 permissions :
100105 actions : write
@@ -107,24 +112,24 @@ jobs:
107112 persist-credentials : false
108113
109114 - name : Setup Scripts
110- uses : github/gh-aw/ actions/setup@32b3a711a9ee97d38e3989c90af0385aff0066a7 # v0.57.2
115+ uses : github/gh-aw- actions/setup@84dc9c12e0d955a200911a3a07c3f5dd96a175d7 # v0.64.3
111116 with :
112- destination : /opt /gh-aw/actions
117+ destination : ${{ runner.temp }} /gh-aw/actions
113118
114119 - name : Check admin/maintainer permissions
115120 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
116121 with :
117122 github-token : ${{ secrets.GITHUB_TOKEN }}
118123 script : |
119- const { setupGlobals } = require('/opt /gh-aw/actions/setup_globals.cjs');
124+ const { setupGlobals } = require('${{ runner.temp }} /gh-aw/actions/setup_globals.cjs');
120125 setupGlobals(core, github, context, exec, io);
121- const { main } = require('/opt /gh-aw/actions/check_team_member.cjs');
126+ const { main } = require('${{ runner.temp }} /gh-aw/actions/check_team_member.cjs');
122127 await main();
123128
124129 - name : Install gh-aw
125- uses : github/gh-aw/ actions/setup-cli@v0.57.2
130+ uses : github/gh-aw- actions/setup-cli@84dc9c12e0d955a200911a3a07c3f5dd96a175d7 # v0.64.3
126131 with :
127- version : v0.57.2
132+ version : v0.64.3
128133
129134 - name : Run operation
130135 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
@@ -135,7 +140,52 @@ jobs:
135140 with :
136141 github-token : ${{ secrets.GITHUB_TOKEN }}
137142 script : |
138- const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
143+ const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
144+ setupGlobals(core, github, context, exec, io);
145+ const { main } = require('${{ runner.temp }}/gh-aw/actions/run_operation_update_upgrade.cjs');
146+ await main();
147+
148+ apply_safe_outputs :
149+ if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.operation == 'safe_outputs' && !github.event.repository.fork }}
150+ runs-on : ubuntu-slim
151+ permissions :
152+ actions : read
153+ contents : write
154+ discussions : write
155+ issues : write
156+ pull-requests : write
157+ steps :
158+ - name : Checkout actions folder
159+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
160+ with :
161+ sparse-checkout : |
162+ actions
163+ persist-credentials : false
164+
165+ - name : Setup Scripts
166+ uses : github/gh-aw-actions/setup@84dc9c12e0d955a200911a3a07c3f5dd96a175d7 # v0.64.3
167+ with :
168+ destination : ${{ runner.temp }}/gh-aw/actions
169+
170+ - name : Check admin/maintainer permissions
171+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
172+ with :
173+ github-token : ${{ secrets.GITHUB_TOKEN }}
174+ script : |
175+ const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
176+ setupGlobals(core, github, context, exec, io);
177+ const { main } = require('${{ runner.temp }}/gh-aw/actions/check_team_member.cjs');
178+ await main();
179+
180+ - name : Apply Safe Outputs
181+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
182+ env :
183+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
184+ GH_AW_RUN_URL : ${{ github.event.inputs.run_url }}
185+ with :
186+ github-token : ${{ secrets.GITHUB_TOKEN }}
187+ script : |
188+ const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
139189 setupGlobals(core, github, context, exec, io);
140- const { main } = require('/opt/ gh-aw/actions/run_operation_update_upgrade .cjs');
190+ const { main } = require('${{ runner.temp }}/ gh-aw/actions/apply_safe_outputs_replay .cjs');
141191 await main();
0 commit comments