70
70
GITHUB_EVENT_NAME :${{ github.event_name }}
71
71
GITHUB_EVENT_USER_ID :${{ github.event.sender.id }}
72
72
GITHUB_EVENT_USER_LOGIN :${{ github.event.sender.login }}
73
+ INPUTS_CLEANUP :${{ inputs.cleanup || 'false' }}
73
74
INPUTS_ISSUE_URL :${{ inputs.issue_url }}
74
75
INPUTS_TEMPLATE_NAME :${{ inputs.template_name || 'traiage' }}
75
76
INPUTS_TEMPLATE_PRESET :${{ inputs.template_preset || 'Default'}}
85
86
echo "Using prefix: ${INPUTS_PREFIX}"
86
87
echo "prefix=${INPUTS_PREFIX}" >> "${GITHUB_OUTPUT}"
87
88
89
+ echo "Using cleanup: ${INPUTS_CLEANUP}"
90
+ echo "cleanup=${INPUTS_CLEANUP}" >> "${GITHUB_OUTPUT}"
91
+
88
92
# For workflow_dispatch, use the actor who triggered it
89
93
# For issues events, use the issue author.
90
94
if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
@@ -222,7 +226,7 @@ jobs:
222
226
223
227
-name :Create and upload archive
224
228
id :create-archive
225
- if :inputs.cleanup
229
+ if :${{ steps.determine- inputs.outputs. cleanup }}
226
230
env :
227
231
BUCKET_PREFIX :" gs://coder-traiage-outputs/traiage"
228
232
CODER_USERNAME :${{ steps.get-coder-username.outputs.coder_username }}
@@ -236,7 +240,7 @@ jobs:
236
240
237
241
-name :Generate a summary of the changes and post a comment on GitHub.
238
242
id :generate-summary
239
- if :inputs.cleanup
243
+ if :${{ steps.determine- inputs.outputs. cleanup }}
240
244
env :
241
245
ARCHIVE_URL :${{ steps.create-archive.outputs.archive_url }}
242
246
BUCKET_PREFIX :" gs://coder-traiage-outputs/traiage"
@@ -275,7 +279,7 @@ jobs:
275
279
cat "${SUMMARY_FILE}" >> "${GITHUB_STEP_SUMMARY}"
276
280
277
281
-name :Cleanup task
278
- if :inputs.cleanup && steps.create-task.outputs.TASK_NAME != '' && steps.create-archive.outputs.archive_url != ''
282
+ if :steps.determine- inputs.outputs .cleanup && steps.create-task.outputs.TASK_NAME != '' && steps.create-archive.outputs.archive_url != ''
279
283
run :|
280
284
echo "Cleaning up task: $TASK_NAME"
281
285
./scripts/traiage.sh delete ||true