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

Commit2880582

Browse files
authored
ci(.github/workflows/traiage.yaml): remove extraneous cleanup steps (#20154)
1 parent091b5c8 commit2880582

File tree

1 file changed

+0
-69
lines changed

1 file changed

+0
-69
lines changed

‎.github/workflows/traiage.yaml‎

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ on:
2525
required:false
2626
default:"traiage"
2727
type:string
28-
cleanup:
29-
description:"Cleanup workspace after triage."
30-
required:false
31-
default:false
32-
type:boolean
3328

3429
jobs:
3530
traiage:
@@ -70,7 +65,6 @@ jobs:
7065
GITHUB_EVENT_NAME:${{ github.event_name }}
7166
GITHUB_EVENT_USER_ID:${{ github.event.sender.id }}
7267
GITHUB_EVENT_USER_LOGIN:${{ github.event.sender.login }}
73-
INPUTS_CLEANUP:${{ inputs.cleanup || false }}
7468
INPUTS_ISSUE_URL:${{ inputs.issue_url }}
7569
INPUTS_TEMPLATE_NAME:${{ inputs.template_name || 'traiage' }}
7670
INPUTS_TEMPLATE_PRESET:${{ inputs.template_preset || 'Default'}}
@@ -86,9 +80,6 @@ jobs:
8680
echo "Using prefix: ${INPUTS_PREFIX}"
8781
echo "prefix=${INPUTS_PREFIX}" >> "${GITHUB_OUTPUT}"
8882
89-
echo "Using cleanup: ${INPUTS_CLEANUP}"
90-
echo "cleanup=${INPUTS_CLEANUP}" >> "${GITHUB_OUTPUT}"
91-
9283
# For workflow_dispatch, use the actor who triggered it
9384
# For issues events, use the issue author.
9485
if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
@@ -222,63 +213,3 @@ jobs:
222213
fi
223214
echo "TASK_NAME=${CODER_USERNAME}/${TASK_NAME}" >> "${GITHUB_OUTPUT}"
224215
echo "TASK_NAME=${CODER_USERNAME}/${TASK_NAME}" >> "${GITHUB_ENV}"
225-
226-
-name:Create and upload archive
227-
id:create-archive
228-
if:steps.determine-inputs.outputs.cleanup == 'true'
229-
env:
230-
BUCKET_PREFIX:"gs://coder-traiage-outputs/traiage"
231-
CODER_USERNAME:${{ steps.get-coder-username.outputs.coder_username }}
232-
TASK_NAME:${{ steps.create-task.outputs.TASK_NAME }}
233-
run:|
234-
echo "Waiting for task to complete..."
235-
coder exp task status "${TASK_NAME}" --watch
236-
echo "Creating archive for workspace: ${TASK_NAME}"
237-
./scripts/traiage.sh archive
238-
echo "archive_url=${BUCKET_PREFIX%%/}/$TASK_NAME.tar.gz" >> "${GITHUB_OUTPUT}"
239-
240-
-name:Generate a summary of the changes and post a comment on GitHub.
241-
id:generate-summary
242-
if:steps.determine-inputs.outputs.cleanup == 'true'
243-
env:
244-
ARCHIVE_URL:${{ steps.create-archive.outputs.archive_url }}
245-
BUCKET_PREFIX:"gs://coder-traiage-outputs/traiage"
246-
CODER_USERNAME:${{ steps.get-coder-username.outputs.coder_username }}
247-
CONTEXT_KEY:${{ steps.extract-context.outputs.context_key }}
248-
GH_TOKEN:${{ github.token }}
249-
GITHUB_REPOSITORY:${{ github.repository }}
250-
ISSUE_URL:${{ steps.determine-inputs.outputs.issue_url }}
251-
TASK_NAME:${{ steps.create-task.outputs.TASK_NAME }}
252-
run:|
253-
SUMMARY_FILE=$(mktemp)
254-
trap 'rm -f "${SUMMARY_FILE}"' EXIT
255-
AUTO_SUMMARY=$(./scripts/traiage.sh summary)
256-
{
257-
echo "## TrAIage Results"
258-
echo "- **Issue URL:** ${ISSUE_URL}"
259-
echo "- **Context Key:** ${CONTEXT_KEY}"
260-
echo "- **Workspace:** ${TASK_NAME}"
261-
echo "- **Archive URL:** ${ARCHIVE_URL}"
262-
echo
263-
echo "${AUTO_SUMMARY}"
264-
echo
265-
echo "To fetch the output to your own workspace:"
266-
echo
267-
echo '```bash'
268-
echo "BUCKET_PREFIX=${BUCKET_PREFIX} TASK_NAME=${TASK_NAME} ./scripts/traiage.sh resume"
269-
echo '```'
270-
echo
271-
} >> "${SUMMARY_FILE}"
272-
273-
if [[ "${ISSUE_URL}" == "https://github.com/${GITHUB_REPOSITORY}"* ]]; then
274-
gh issue comment "${ISSUE_URL}" --body-file "${SUMMARY_FILE}" --create-if-none --edit-last
275-
else
276-
echo "Skipping comment on other repo."
277-
fi
278-
cat "${SUMMARY_FILE}" >> "${GITHUB_STEP_SUMMARY}"
279-
280-
-name:Cleanup task
281-
if:steps.determine-inputs.outputs.cleanup == 'true' && steps.create-task.outputs.TASK_NAME != '' && steps.create-archive.outputs.archive_url != ''
282-
run:|
283-
echo "Cleaning up task: $TASK_NAME"
284-
./scripts/traiage.sh delete ||true

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp