1212# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
1313# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
1414#
15- # This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.63.1 ). DO NOT EDIT.
15+ # This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.67.0 ). DO NOT EDIT.
1616#
1717# To regenerate this workflow, run:
1818# gh aw compile
4848 - ' enable'
4949 - ' update'
5050 - ' upgrade'
51+ - ' safe_outputs'
52+ - ' create_labels'
53+ run_url :
54+ 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.'
55+ required : false
56+ type : string
57+ default : ' '
5158
5259permissions : {}
5360
6168 pull-requests : write
6269 steps :
6370 - name : Setup Scripts
64- uses : github/gh-aw-actions/setup@53e09ec0be6271e81a69f51ef93f37212c8834b0 # v0.63.1
71+ uses : github/gh-aw-actions/setup@cde65c546c2b0f6d3f3a9492a04e6687887c4fe8 # v0.67.0
6572 with :
6673 destination : ${{ runner.temp }}/gh-aw/actions
6774
93100 await main();
94101
95102 run_operation :
96- if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.operation != '' && !github.event.repository.fork }}
103+ if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.operation != '' && github.event.inputs.operation != 'safe_outputs' && github.event.inputs.operation != 'create_labels' && !github.event.repository.fork }}
97104 runs-on : ubuntu-slim
98105 permissions :
99106 actions : write
@@ -106,7 +113,7 @@ jobs:
106113 persist-credentials : false
107114
108115 - name : Setup Scripts
109- uses : github/gh-aw-actions/setup@53e09ec0be6271e81a69f51ef93f37212c8834b0 # v0.63.1
116+ uses : github/gh-aw-actions/setup@cde65c546c2b0f6d3f3a9492a04e6687887c4fe8 # v0.67.0
110117 with :
111118 destination : ${{ runner.temp }}/gh-aw/actions
112119
@@ -121,9 +128,9 @@ jobs:
121128 await main();
122129
123130 - name : Install gh-aw
124- uses : github/gh-aw-actions/setup-cli@v0.63.1
131+ uses : github/gh-aw-actions/setup-cli@cde65c546c2b0f6d3f3a9492a04e6687887c4fe8 # v0.67.0
125132 with :
126- version : v0.63.1
133+ version : v0.67.0
127134
128135 - name : Run operation
129136 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
@@ -138,3 +145,92 @@ jobs:
138145 setupGlobals(core, github, context, exec, io);
139146 const { main } = require('${{ runner.temp }}/gh-aw/actions/run_operation_update_upgrade.cjs');
140147 await main();
148+
149+ apply_safe_outputs :
150+ if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.operation == 'safe_outputs' && !github.event.repository.fork }}
151+ runs-on : ubuntu-slim
152+ permissions :
153+ actions : read
154+ contents : write
155+ discussions : write
156+ issues : write
157+ pull-requests : write
158+ steps :
159+ - name : Checkout actions folder
160+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
161+ with :
162+ sparse-checkout : |
163+ actions
164+ persist-credentials : false
165+
166+ - name : Setup Scripts
167+ uses : github/gh-aw-actions/setup@cde65c546c2b0f6d3f3a9492a04e6687887c4fe8 # v0.67.0
168+ with :
169+ destination : ${{ runner.temp }}/gh-aw/actions
170+
171+ - name : Check admin/maintainer permissions
172+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
173+ with :
174+ github-token : ${{ secrets.GITHUB_TOKEN }}
175+ script : |
176+ const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
177+ setupGlobals(core, github, context, exec, io);
178+ const { main } = require('${{ runner.temp }}/gh-aw/actions/check_team_member.cjs');
179+ await main();
180+
181+ - name : Apply Safe Outputs
182+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
183+ env :
184+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
185+ GH_AW_RUN_URL : ${{ github.event.inputs.run_url }}
186+ with :
187+ github-token : ${{ secrets.GITHUB_TOKEN }}
188+ script : |
189+ const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
190+ setupGlobals(core, github, context, exec, io);
191+ const { main } = require('${{ runner.temp }}/gh-aw/actions/apply_safe_outputs_replay.cjs');
192+ await main();
193+
194+ create_labels :
195+ if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.operation == 'create_labels' && !github.event.repository.fork }}
196+ runs-on : ubuntu-slim
197+ permissions :
198+ contents : read
199+ issues : write
200+ steps :
201+ - name : Checkout repository
202+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
203+ with :
204+ persist-credentials : false
205+
206+ - name : Setup Scripts
207+ uses : github/gh-aw-actions/setup@cde65c546c2b0f6d3f3a9492a04e6687887c4fe8 # v0.67.0
208+ with :
209+ destination : ${{ runner.temp }}/gh-aw/actions
210+
211+ - name : Check admin/maintainer permissions
212+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
213+ with :
214+ github-token : ${{ secrets.GITHUB_TOKEN }}
215+ script : |
216+ const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
217+ setupGlobals(core, github, context, exec, io);
218+ const { main } = require('${{ runner.temp }}/gh-aw/actions/check_team_member.cjs');
219+ await main();
220+
221+ - name : Install gh-aw
222+ uses : github/gh-aw-actions/setup-cli@cde65c546c2b0f6d3f3a9492a04e6687887c4fe8 # v0.67.0
223+ with :
224+ version : v0.67.0
225+
226+ - name : Create missing labels
227+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
228+ env :
229+ GH_AW_CMD_PREFIX : gh aw
230+ with :
231+ github-token : ${{ secrets.GITHUB_TOKEN }}
232+ script : |
233+ const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
234+ setupGlobals(core, github, context, exec, io);
235+ const { main } = require('${{ runner.temp }}/gh-aw/actions/create_labels.cjs');
236+ await main();
0 commit comments