-
Notifications
You must be signed in to change notification settings - Fork 891
Description
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