mirror of
https://github.com/nektos/act.git
synced 2026-04-27 01:45:52 +03:00
[GH-ISSUE #2433] actions/download-artifact@v4 downloads wrong file #1120
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @malciin on GitHub (Aug 22, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2433
Originally assigned to: @ChristopherHX on GitHub.
Bug report info
Command used with act
Describe issue
I've found that
actions/download-artifact@v4can download invalid file (even tho name input parameter is specified) when running with-self-hostedflag.If I use workflow like:
it will correctly print
b content, however if we uncomment these lines we'll get a warning:::warning::Multiple artifacts found, defaulting to first.because of following following response:And
cat downloaded/file.txtwill printa contentbecause it downloadedaartifact not thebartifact.Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
@malciin commented on GitHub (Aug 22, 2024):
After investigating it a little more using
v3version rather thanv4for bothactions/download-artifact&actions/upload-artifactfixes it:output:
@roryabraham commented on GitHub (Sep 19, 2024):
I'm getting the same
🚧 ::warning::Multiple artifacts found, defaulting to first.on this workflow w/o-self-hosted:Run with:
act --container-architecture linux/arm64 --artifact-server-path /tmp/artifacts -W .github/workflows/localTesting.ymlFull output:
As you can see, only
file1.txtis downloaded, but I think it's a 🐛 with act. Confirmed it works as expected if I switchactions/download-artifactto v3@ChristopherHX commented on GitHub (Oct 13, 2024):
This is now the most high priority item of my backlog work starts soon.
Problem
All artifacts have the same id and downloading is using the id when merging multiple artifacts
Todo find a way to provide id's from artifact name or change directory structure
Then create a test to enshure this works correctly.
Gitea and runner.server versions of the backend are using database id's those have been stripped away while porting
@ChristopherHX commented on GitHub (Oct 27, 2024):
Please test #2505, pr checks contain binaries if needed