Merge pull request #114 from codecov/timeouts

Add more timeout tries and decrease timeout time
This commit is contained in:
Thomas Hu 2020-08-17 22:13:50 -04:00 committed by GitHub
commit 6004246f47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

6
dist/index.js vendored
View file

@ -2233,8 +2233,10 @@ try {
} }
request({ request({
url: "https://codecov.io/bash", json: false,
json: false maxAttempts: 10,
timeout: 3000,
url: "https://codecov.io/bash"
}, (error, response, body) => { }, (error, response, body) => {
try { try {
if (error && fail_ci) { if (error && fail_ci) {

View file

@ -29,8 +29,10 @@ try {
} }
request({ request({
url: "https://codecov.io/bash", json: false,
json: false maxAttempts: 10,
timeout: 3000,
url: "https://codecov.io/bash"
}, (error, response, body) => { }, (error, response, body) => {
try { try {
if (error && fail_ci) { if (error && fail_ci) {

View file

@ -1,6 +1,6 @@
{ {
"name": "codecov-action", "name": "codecov-action",
"version": "1.0.12", "version": "1.0.13",
"description": "Upload coverage reports to Codecov from GitHub Actions", "description": "Upload coverage reports to Codecov from GitHub Actions",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {