Skip to content

[bug] Merge artifacts with matrix fails with delete-merged: true #678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mohiadeenbatcha opened this issue Mar 6, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@mohiadeenbatcha
Copy link

What happened?

I have a matrix pipeline where I generate artifacts like package_{module1}, package_{module2}

I merge these artifacts in the same folder like "Package" where I put

  • name: Merge Artifacts
    uses: actions/upload-artifact/merge@v4
    with:
    name: package_${{inputs.module_name}}
    pattern: package_*
    delete-merged: true

Here, what happens is, it was able to merge the artifacts, but when trying to delete because I have "delete-merged: true", the artifacts which were present during the module1 was deleted by another module. so I get an error like "Error: Artifact not found for name: ***"

But I could see the merge was successful which was the end goal.

What did you expect to happen?

I would like to get warning instead of action failure where deletion is not that mandatory. I should only get notified when the actual merge failed.

How can we reproduce it?

Configure a matrix job with multiple modules and each steps should artifact something, and try to merge those artifacts everytime within the matrix. so that you will get the artifacts for each matrix seperately.

Anything else we need to know?

No response

What version of the action are you using?

upload-artifact/merge@v4

What are your runner environments?

linux

Are you on GitHub Enterprise Server? If so, what version?

No response

@mohiadeenbatcha mohiadeenbatcha added the bug Something isn't working label Mar 6, 2025
@k4976
Copy link

k4976 commented Apr 7, 2025

i also faced the issue that when we try to use actions/upload-artifact/merge@v4 to bundle all artifacts in one, then one .tar.gz file gets corrupted bcoz it was available in multiple artifacts which i am trying to bundle in one, this is not the case in actions/upload-artifact@v3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants