actions / download-artifact

MIT License
1.4k stars 478 forks source link

[bug] Artifact not found when I specify the run id #320

Closed thomaslevesque closed 5 months ago

thomaslevesque commented 5 months ago

What happened?

I use actions/download-artifact@v4 to download an artifact uploaded by actions/upload-artifact@v4 in another workflow. I explicitly specify the run-id in the action inputs. The run id is determined by a previous step, and I can see, using the REST API, that this run does have the artifact I'm looking for. But the step fails with this error:

Error: Unable to download artifact(s): Artifact not found for name: documentation

Here's the workflow run showing this error: https://github.com/FakeItEasy/FakeItEasy/actions/runs/8648998298/job/23714246396 (the step appears as successful because I have continue-on-error: true)

Here's the API call that shows the artifact exists for this run: https://api.github.com/repos/FakeItEasy/FakeItEasy/actions/runs/8648912366/artifacts

What did you expect to happen?

I expected the action to successfully download the artifact

How can we reproduce it?

Try to download an artifact uploaded by another workflow, by specifying the run id and artifact name

Anything else we need to know?

No response

What version of the action are you using?

v4

What are your runner environments?

linux

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

No response

thomaslevesque commented 5 months ago

Ah, nevermind. image I passed the token and now it works