Skip to content

Download shouldn't break if if_no_artifact_found is set to !fail #305

@mkarasik

Description

@mkarasik

I have a multiple artifacts in my run, and one of them is expired. However the download loop stops regardless of the flag.

https://github.com/dawidd6/action-download-artifact/blob/master/main.js#L257

    } catch (error) {
      if (error.message.startsWith("Artifact has expired")) {
          return setExitMessage(ifNoArtifactFound, "no downloadable artifacts found (expired)")
      } else {
          throw new Error(error.message)
      }

Warn and ignore should not break the loop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions