Skip to content
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

Error: Failed to upload release asset my-filename. received status code 404 #210

Open
vitalyk-multinarity opened this issue Feb 15, 2022 · 2 comments

Comments

@vitalyk-multinarity
Copy link

vitalyk-multinarity commented Feb 15, 2022

I'm getting "Error: Failed to upload release asset output-metadata.json. received status code 404" error. I'm calling action-gh-release with

- uses: softprops/action-gh-release@v1 name: release_artifacts if: github.event_name == 'release' with: files: | Android/build/outputs/apk/debug/* Android/installhandlerapp/build/outputs/apk/debug/*
i.e. I'm not mentioning output-metadata.json explicitly.
And I have output-metadata.json in both directories.

  Any suggestions?
  Thank you,

Vitaly

@guillaumejacquart
Copy link

Hey @vitalyk-multinarity, I guess you probably do not have the issue anymore, but I got it as well, and it was caused by the fact that I had multiple files with the same name on different directory in the files option.
I think it's because release assets cannot contain directory name, only a file name, so the action takes the file name and I guess it creates a conflict leading to an error (don't know why it's a 404 though).
Anyway, I flattend the directory so that if contains unique file names, and now it works.
Hope it helps

@vitalyk-multinarity
Copy link
Author

I think it's because release assets cannot contain directory name, only a file name

@guillaumejacquart - thank you, good point!
(To say the truth I don't remember how I fixed my issue.)

adleong added a commit to linkerd/linkerd-smi that referenced this issue May 9, 2023
The "Create Release" github action contained redundant file globs which listed the same release artifact multiple times.  For [some reason](softprops/action-gh-release#210), this causes the action to encounter a 404 error and fail.

Remove the redundant globs so that each file is listed only once.

Signed-off-by: Alex Leong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants