Closed
actions/github/run: replace upload-name/upload-path with generic uploads config#5154
Conversation
✅ Deploy Preview for nifty-bassi-e26446 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Remove scalar upload-name/upload-path inputs and add a single `uploads`
YAML config input. Uploads are now iterated via actions/foreach mirroring
the downloads pattern. Values can be objects with `path` and
`if-no-files-found` keys, or bare strings (shorthand for {path: ...}).
Paths are normalised: absolute paths used as-is, relative paths rooted at
runner.temp.
Cancellation guard preserved on the upload-config jq step.
Failure tracking updated: post-failed and upload-failed now gate on
inputs.uploads instead of the removed inputs.
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Support uploading multiple artifacts generically
actions/github/run: replace upload-name/upload-path with generic uploads config
Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The scalar
upload-name/upload-pathinputs didn't scale — adding a second artifact required copy-pasting inputs and steps, and the failure-tracking logic (post-failed/upload-failed/UPLOAD_ERR) was keyed only to those inputs, silently ignoring failures from any additional uploads.Changes
upload-nameandupload-path(clean break, no shim)uploadsYAML config input, mirroring the existingdownloadspatternpathandif-no-files-found; bare strings are accepted as shorthand for{path: ...}${{ runner.temp }}/foreachiteration: ajqstep (upload-config) normalises the config, thenactions/foreachdrives oneactions/upload-artifactcall per entryupload-configstep — no uploads fire if the run was cancelledpost-failedandupload-failednow gate oninputs.uploads;UPLOAD_ERR/cleanup logic unchangedUsage