diff --git a/dist/index.js b/dist/index.js index 0f2b943f5..e21a16d28 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: 10, + 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..c7fed3a71 100644 --- a/index.js +++ b/index.js @@ -29,8 +29,10 @@ try { } request({ - url: "https://codecov.io/bash", - json: false + json: false, + maxAttempts: 10, + 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": {