@@ -102,15 +102,15 @@ jobs:
102
102
if : success()
103
103
uses : actions/upload-artifact@v4
104
104
with :
105
- name : exploit_ ${{ env.RELEASE_ID }}
105
+ name : ${{ needs.structure_check.outputs.artifact_backup_dir }}_exploit_ ${{ env.RELEASE_ID }}
106
106
path : ${{ env.EXPLOIT_DIR }}/exploit
107
107
if-no-files-found : error
108
108
109
109
- name : Upload exploit (original, build failed)
110
110
if : failure() && steps.build_exploit.outcome == 'failure'
111
111
uses : actions/upload-artifact@v4
112
112
with :
113
- name : exploit_ ${{ env.RELEASE_ID }}
113
+ name : ${{ needs.structure_check.outputs.artifact_backup_dir }}_exploit_ ${{ env.RELEASE_ID }}
114
114
path : ./exploit
115
115
if-no-files-found : error
116
116
@@ -161,7 +161,7 @@ jobs:
161
161
- name : Upload debug build
162
162
uses : actions/upload-artifact@v4
163
163
with :
164
- name : exploit_debug_ ${{ env.RELEASE_ID }}
164
+ name : ${{ needs.structure_check.outputs.artifact_backup_dir }}_exploit_debug_ ${{ env.RELEASE_ID }}
165
165
path : ${{ env.EXPLOIT_DIR }}/exploit_debug
166
166
if-no-files-found : error
167
167
@@ -271,7 +271,7 @@ jobs:
271
271
- name : Upload repro QEMU logs as an artifact
272
272
uses : actions/upload-artifact@v4
273
273
with :
274
- name : repro_logs_ ${{ env.RELEASE_ID }}
274
+ name : ${{ needs.structure_check.outputs.artifact_backup_dir }}_repro_logs_ ${{ env.RELEASE_ID }}
275
275
path : ./kernelctf/repro/repro_log_*.txt
276
276
277
277
- name : Reproduction // Summary
@@ -284,13 +284,13 @@ jobs:
284
284
- name : Upload repro summary as an artifact
285
285
uses : actions/upload-artifact@v4
286
286
with :
287
- name : repro_summary_ ${{ env.RELEASE_ID }}
287
+ name : ${{ needs.structure_check.outputs.artifact_backup_dir }}_repro_summary_ ${{ env.RELEASE_ID }}
288
288
path : ./kernelctf/repro/repro_summary.md
289
289
290
290
backup_artifacts :
291
291
runs-on : ubuntu-latest
292
292
needs : [structure_check, exploit_build, exploit_build_debug, exploit_repro]
293
- if : always() && needs.structure_check.result == 'success'
293
+ if : always() && needs.structure_check.result == 'success' && github.event_name != 'workflow_call'
294
294
steps :
295
295
- name : Download artifacts
296
296
uses : actions/download-artifact@v4
0 commit comments