-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Gitea rerurns 404 when trying to download artifact via Gitea actions #33353
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
Comments
Yes I did skip implementing the public actions artifacts api endpoints used by this v4 action (private workflow run scoped api has been implemented by me and contributed to gitea). So it's certainly possible this rest api endpoint are still missing, which is only used once github-token is set / used by your external action. Requires new rest api endpoints for Gitea Actions. I could look into this soon we have UI endpoints for them only, together with an rest api endpoint for |
Thank you! So far I came up with the following workaround. Prerequisites
How to
This step basically mimics user actions: performs login in Gitea, downloads artifacts via generated link and unzips them. |
Re 302 http status assertion: I my opinion this action should have allowed http 200 as well EDIT whoops I meant to add this to the pr that implements this... |
Description
Hello!
I was trying to download an artifact that was published in a different workflow and faced with a 404 error returned by Gitea.
Let's assume that we have 2 workflows:
workflow1.yml
- generates and publishes an artifact underbuild_details_{run_id}
nameworkflow2.yml
- downloads artifact published byworkflow2.yml
Now let's assume that workflow 1 has been successfully completed: it recieved
run id = 22
and it published an artifact namedbuild_details_22
.If I run workflow 2 and pass
22
asbuild-id
parameter I will get the following error:::error::Unable to download artifact(s): 404 page not found%0A
If I replace
Download artifact
step in workflow 2 with an alternative action:I will get the same error:
::error::404 page not found%0A
Taking into account the same error messages (followed by
%0A
) I think that there is a bug exist in some of the Gitea endpoint(s).I appreciate any advice how to fix the issue
Gitea Version
1.23.1
Can you reproduce the bug on the Gitea demo site?
No: there are no runners available on the demo site
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Debian 12
How are you running Gitea?
Gitea is running in the Docker container.
Gitea act runner is installed directly on the server.
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: