You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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]>
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.
Vitaly
The text was updated successfully, but these errors were encountered: