Fix d5a72193: [CI] downloading single artifact doesn't add folder to it #11107
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.
Motivation / Problem
The download-artifact action has two modes: download all or download one.
In the first mode, it downloads all artifacts prefixed with their artifact name.
In the second mode, it doesn't do this.
These differences .. owh well .. but in result the Steam/GOG release failed, as they assumed the artifacts are in the folder.
Description
There are two choices: remove the assumption the artifacts are in the folder, or add the folder. I did the latter, as the first can be a bit tricky. Say, by accident, one of the targets outputs a file with the same name as another target. It would now overwrite this. We can't have that! So, put artifacts in their own folder.
Limitations
Still untested, so we will see tomorrow night if this works :)
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.