Skip to content

Commit 29a3823

Browse files
authored
Merge pull request #114 from check-run-reporter/fallback-on-abort
fix: fallback to to singlestep upload on timeout/abort
2 parents 20a7e72 + 66cbc08 commit 29a3823

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/commands/submit.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ async function tryMultiStepUploadOrFallbackToSingle(
6262
} catch (err) {
6363
if (axios.isAxiosError(err)) {
6464
// CI doesn't like safe-access here.
65-
if (err.response && err.response.status === 404) {
65+
if (
66+
(err.response && err.response.status === 404) ||
67+
err.code === 'ECONNABORTED'
68+
) {
6669
context.logger.info(
6770
'Received 404 trying to get signed URLs. Assuming feature is notn released yet and falling back to single step upload',
6871
{err}

0 commit comments

Comments
 (0)