Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd10d49a

Browse files
committed
fixup! ci(.github/workflows/traiage.yaml): default inputs on trigger by label assignment
1 parent2a45331 commitd10d49a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎.github/workflows/traiage.yaml‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
GITHUB_EVENT_NAME:${{ github.event_name }}
7171
GITHUB_EVENT_USER_ID:${{ github.event.sender.id }}
7272
GITHUB_EVENT_USER_LOGIN:${{ github.event.sender.login }}
73+
INPUTS_CLEANUP:${{ inputs.cleanup || 'false' }}
7374
INPUTS_ISSUE_URL:${{ inputs.issue_url }}
7475
INPUTS_TEMPLATE_NAME:${{ inputs.template_name || 'traiage' }}
7576
INPUTS_TEMPLATE_PRESET:${{ inputs.template_preset || 'Default'}}
@@ -85,6 +86,9 @@ jobs:
8586
echo "Using prefix: ${INPUTS_PREFIX}"
8687
echo "prefix=${INPUTS_PREFIX}" >> "${GITHUB_OUTPUT}"
8788
89+
echo "Using cleanup: ${INPUTS_CLEANUP}"
90+
echo "cleanup=${INPUTS_CLEANUP}" >> "${GITHUB_OUTPUT}"
91+
8892
# For workflow_dispatch, use the actor who triggered it
8993
# For issues events, use the issue author.
9094
if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
@@ -222,7 +226,7 @@ jobs:
222226
223227
-name:Create and upload archive
224228
id:create-archive
225-
if:inputs.cleanup
229+
if:${{ steps.determine-inputs.outputs.cleanup }}
226230
env:
227231
BUCKET_PREFIX:"gs://coder-traiage-outputs/traiage"
228232
CODER_USERNAME:${{ steps.get-coder-username.outputs.coder_username }}
@@ -236,7 +240,7 @@ jobs:
236240
237241
-name:Generate a summary of the changes and post a comment on GitHub.
238242
id:generate-summary
239-
if:inputs.cleanup
243+
if:${{ steps.determine-inputs.outputs.cleanup }}
240244
env:
241245
ARCHIVE_URL:${{ steps.create-archive.outputs.archive_url }}
242246
BUCKET_PREFIX:"gs://coder-traiage-outputs/traiage"
@@ -275,7 +279,7 @@ jobs:
275279
cat "${SUMMARY_FILE}" >> "${GITHUB_STEP_SUMMARY}"
276280
277281
-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 != ''
279283
run:|
280284
echo "Cleaning up task: $TASK_NAME"
281285
./scripts/traiage.sh delete ||true

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp