Skip to content

Commit

Permalink
Merge pull request #114 from codecov/timeouts
Browse files Browse the repository at this point in the history
Add more timeout tries and decrease timeout time
  • Loading branch information
thomasrockhu committed Aug 18, 2020
2 parents fadbb25 + 5d3f01c commit 6004246
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions dist/index.js
Expand Up @@ -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) {
Expand Down
6 changes: 4 additions & 2 deletions index.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down

0 comments on commit 6004246

Please sign in to comment.