10000 Abort if upload returns a non 200 http status by varshavaradarajan · Pull Request #8 · skx/github-action-publish-binaries · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 22, 2024. It is now read-only.

Abort if upload returns a non 200 http status #8

Merged
merged 1 commit into from
Oct 14, 2019

Conversation

varshavaradarajan
Copy link
Contributor

@skx - curl returning a non zero exit code does not happen if the GitHub upload request times out, or as mentioned in #6 , is a 404. I think both cases (curl exiting with non zero and post not being successful) should be handled. WDYT?

@skx
Copy link
Owner
skx commented Oct 14, 2019

Yes, I noted that in the release - though I didn't notice it in your original report:

However I suspect this won't be comprehensive, because the curl command could complete and regard itself as successful even if the remote API returns "out of disk-space", "artifact already present", or some other error-condition. We're solely relying upon the exit-code that curl returns here.

Your change looks good. Thank you for your continued attention.

@skx skx merged commit 6a9ddcf into skx:master Oct 14, 2019
@varshavaradarajan
Copy link
Contributor Author
varshavaradarajan commented Oct 14, 2019

Thanks @skx! Verified that it works https://github.com/varshavaradarajan/clusterlint/commit/56e3306cf7dee1dcd6955519936a93d70182b71d/checks?check_suite_id=264339268

Edit: Reran checks, so above url no longer valid.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0