You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[docs] Release notes for v5 are misleading, behavior changes in more cases #419
This only matches one file. With v4 this downloads the file into a directory msi/<something>-amd64/, but with v5 it just downloads the file directly into msi/. Not sure whether that is a bug or not, but the release notes definitely do not mention the use of pattern.
What are your suggested changes?
Either decide this is a bug and change the behavior back to pre-v5 or document that you can get behavior change even if you don't use artifact-id.
Reacted by marksmithsonuk, Alex Rashed, twsl, Steven Silvester, Maximilian Birkner, Laurenz, Yigit Gunsur Elmacioglu, Paul Holzinger, toyamagu-2021 (gussan), Phillip LeBlanc and 2 more
if only path is supplied, it should download all artifacts into said seperated subfolders named after the artifact.
This behaviour breaks existing pipelines.
Pattern is only used for filtering and has no influence.
I would consider this a bug as it is an undocumented breaking change.
I have this defined - uses: actions/download-artifact@v5 my artifact is named artifact and it used to be downloaded into artifacts folder now its just at the root. This is not reflected as a change
The change in #416 is triggered on single artifact download, so if a pattern matched a single file, it will be matched by the if condition.
I will update the README to reflect this behavior change, we cannot merge #422 or revert/update path logic as it will be considered yet a breaking change.
Reacted by Bart Koelman, twsl, Steven Silvester, Knut Risheim, Dario Panici, Jerry Ylilammi and Illia Antypenko
@yacaovsnc i think you are missing a part of the discussion: Many people used this action without specifying an artifact name or id and therefore the v5 version introduced breaking changes where suddenly a single artifact is downloaded to the path root and not a dedicated subfolder while multiple artifacts are downloaded to their dedicated subfolders.
This behaviour change, for users who don't specify neither a name nor id or pattern, is still not documented and based on the amount of people who linked issues, saying their pipelines is broken after the updates, indicates the seriousness.
Reacted by Mikko Ylinen, Bart Koelman and Emil Styrke
Many people used this action without specifying an artifact name or id and therefore the v5 version introduced breaking changes where suddenly a single artifact is downloaded to the path root and not a dedicated subfolder
So the workaround that would work for both v4 and v5 would be something like: path: ${{ github.workspace }}/artifact (untested)?
It would be good to get this bug sorted out so that users would know the right way to get to v5...
Activity
twsl commentedon Aug 13, 2025
if only
pathis supplied, it should download all artifacts into said seperated subfolders named after the artifact.This behaviour breaks existing pipelines.
Pattern is only used for filtering and has no influence.
I would consider this a bug as it is an undocumented breaking change.
The culprit is
L179download-artifact/src/download-artifact.ts
Lines 176 to 181 in de96f46
which extracts directly into the path, when only one artifact is present.
gavintoddchurch commentedon Aug 14, 2025
I have this defined
- uses: actions/download-artifact@v5my artifact is namedartifactand it used to be downloaded intoartifactsfolder now its just at the root. This is not reflected as a changetwsl commentedon Aug 25, 2025
@yacaovsnc can we get this addressed or #422 merged?
yacaovsnc commentedon Aug 25, 2025
The change in #416 is triggered on single artifact download, so if a pattern matched a single file, it will be matched by the
ifcondition.I will update the README to reflect this behavior change, we cannot merge #422 or revert/update path logic as it will be considered yet a breaking change.
yacaovsnc commentedon Aug 25, 2025
#424
twsl commentedon Aug 26, 2025
@yacaovsnc i think you are missing a part of the discussion: Many people used this action without specifying an artifact name or id and therefore the
v5version introduced breaking changes where suddenly a single artifact is downloaded to the path root and not a dedicated subfolder while multiple artifacts are downloaded to their dedicated subfolders.This behaviour change, for users who don't specify neither a name nor id or pattern, is still not documented and based on the amount of people who linked issues, saying their pipelines is broken after the updates, indicates the seriousness.
mythi commentedon Sep 15, 2025
So the workaround that would work for both v4 and v5 would be something like:
path: ${{ github.workspace }}/artifact(untested)?It would be good to get this bug sorted out so that users would know the right way to get to v5...
xPaw commentedon Sep 22, 2025
This broke my pipeline too, I only had
pathspecified.yemal commentedon Oct 27, 2025
it broke my stuff too, such changes must be announced properly on release 🤦♂️
fix download artifact action
fix download artifact action
fix download artifact action
fix download artifact action
fix download artifact action