Skip to content

[docs] Release notes for v5 are misleading, behavior changes in more cases #419

Closed

Description

@flichtenheld

What files would you like to change?

We have the following step in our GHA:

      - name: Get artifacts
        uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
        with:
          pattern: "*-amd64"
          path: msi

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.

Activity

  1. added
    documentation
    on Aug 11, 2025
  2. twsl commented on Aug 13, 2025

    @twsl

    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.

    The culprit is L179

    path:
    isSingleArtifactDownload ||
    inputs.mergeMultiple ||
    artifacts.length === 1
    ? resolvedPath
    : path.join(resolvedPath, artifact.name),

    which extracts directly into the path, when only one artifact is present.

  3. gavintoddchurch commented on Aug 14, 2025

    @gavintoddchurch

    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

  4. twsl commented on Aug 25, 2025

    @twsl

    @yacaovsnc can we get this addressed or #422 merged?

  5. yacaovsnc commented on Aug 25, 2025

    @yacaovsnc
    Contributor

    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.

  6. yacaovsnc commented on Aug 25, 2025

    @yacaovsnc
    Contributor
  7. twsl commented on Aug 26, 2025

    @twsl

    @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.

  8. mythi commented on Sep 15, 2025

    @mythi

    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...

  9. xPaw commented on Sep 22, 2025

    @xPaw

    This broke my pipeline too, I only had path specified.

        steps:
        - name: Download artifacts
          uses: actions/download-artifact@v5
          with:
            path: artifacts
    
        - name: Rename nupkg
          run: mv artifacts/nupkg/ValvePak.*.nupkg artifacts/ValvePak.nupkg
    
  10. yemal commented on Oct 27, 2025

    @yemal

    it broke my stuff too, such changes must be announced properly on release 🤦‍♂️

  11. added a commit that references this issue on Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions