-
Notifications
You must be signed in to change notification settings - Fork 4
add runAttempt to default s3Prefix #4
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/upload-artifact.ts
Outdated
const s3Prefix = | ||
inputs.s3Prefix === '' | ||
? `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${inputs.artifactName}` | ||
? `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${github.context.runNumber}/${inputs.artifactName}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${github.context.runNumber}/${inputs.artifactName}` | |
? `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${github.context.runAttempt}/${inputs.artifactName}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
runAttempt doesn't actually exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is my PR to actually add it: actions/toolkit#1027
Signed-off-by: Eli Uriegas <[email protected]>
e8b82c8
to
078a20d
Compare
Signed-off-by: Eli Uriegas <[email protected]>
Signed-off-by: Eli Uriegas <[email protected]>
Updates our s3 actions to upload and download artifacts to versions that include runAttempt in the prefix for the artifact. This change is mostly to make it so that subsequent re-runs of a workflow do not attempt to grab artifacts from previous runs Coincides with: * seemethere/upload-artifact-s3#4 * seemethere/download-artifact-s3#1 Signed-off-by: Eli Uriegas <[email protected]> Pull Request resolved: #74576 Approved by: https://github.com/malfet, https://github.com/janeyx99
Summary: Updates our s3 actions to upload and download artifacts to versions that include runAttempt in the prefix for the artifact. This change is mostly to make it so that subsequent re-runs of a workflow do not attempt to grab artifacts from previous runs Coincides with: * seemethere/upload-artifact-s3#4 * seemethere/download-artifact-s3#1 Signed-off-by: Eli Uriegas <[email protected]> Pull Request resolved: #74576 Approved by: https://github.com/malfet, https://github.com/janeyx99 Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/2ecc59086a5bc896c82f6f309d25569ec2933467 Reviewed By: b0noI Differential Revision: D35435541 Pulled By: seemethere fbshipit-source-id: 54ac419c21ded23a9c56c7433edf871150a16653
Signed-off-by: Eli Uriegas [email protected]