Skip to content

Commit

Permalink
Add more timeouts and sharter timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu committed Aug 17, 2020
1 parent fadbb25 commit 2d80980
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
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 2d80980

Please sign in to comment.