- Notifications
You must be signed in to change notification settings - Fork1k
ci: add option to skip cleanup in ai triage workflow#20031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -22,6 +22,11 @@ on: | ||
required: false | ||
default: "traiage" | ||
type: string | ||
cleanup: | ||
description: "Cleanup workspace after triage." | ||
required: false | ||
default: false | ||
type: boolean | ||
jobs: | ||
traiage: | ||
@@ -126,6 +131,7 @@ jobs: | ||
- name: Create and upload archive | ||
id: create-archive | ||
if: inputs.cleanup | ||
env: | ||
BUCKET_PREFIX: "gs://coder-traiage-outputs/traiage" | ||
run: | | ||
@@ -135,6 +141,7 @@ jobs: | ||
- name: Generate a summary of the changes and post a comment on GitHub. | ||
id: generate-summary | ||
if: inputs.cleanup | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. No summary unless cleanup, intentional? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. For now, yes. | ||
env: | ||
ARCHIVE_URL: ${{ steps.create-archive.outputs.archive_url }} | ||
BUCKET_PREFIX: "gs://coder-traiage-outputs/traiage" | ||
@@ -172,7 +179,7 @@ jobs: | ||
cat "${SUMMARY_FILE}" >> "${GITHUB_STEP_SUMMARY}" | ||
- name: Cleanup task | ||
if:inputs.cleanup &&steps.create-task.outputs.TASK_NAME != '' && steps.create-archive.outputs.archive_url != '' | ||
run: | | ||
echo "Cleaning up task: $TASK_NAME" | ||
./scripts/traiage.sh delete || true |
Uh oh!
There was an error while loading.Please reload this page.