From 2d809809461c0873820058964726ae21da3c782a Mon Sep 17 00:00:00 2001 From: Thomas Hu Date: Mon, 17 Aug 2020 17:05:37 -0400 Subject: [PATCH] Add more timeouts and sharter timeout --- dist/index.js | 6 ++++-- index.js | 6 ++++-- package.json | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/dist/index.js b/dist/index.js index 0f2b943f5..8219c7af4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2233,8 +2233,10 @@ try { } request({ - url: "https://codecov.io/bash", - json: false + json: false, + maxAttempts: 5, + timeout: 3000, + url: "https://codecov.io/bash" }, (error, response, body) => { try { if (error && fail_ci) { diff --git a/index.js b/index.js index 7cf979768..732707eb8 100644 --- a/index.js +++ b/index.js @@ -29,8 +29,10 @@ try { } request({ - url: "https://codecov.io/bash", - json: false + json: false, + maxAttempts: 5, + timeout: 3000, + url: "https://codecov.io/bash" }, (error, response, body) => { try { if (error && fail_ci) { diff --git a/package.json b/package.json index a544b5796..77b9b1eee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codecov-action", - "version": "1.0.12", + "version": "1.0.13", "description": "Upload coverage reports to Codecov from GitHub Actions", "main": "index.js", "scripts": {