Skip to content

Commit

Permalink
Try requestretry
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu committed Jul 1, 2020
1 parent 4f81def commit f40f110
Show file tree
Hide file tree
Showing 4 changed files with 21,435 additions and 1,011 deletions.
22,360 changes: 21,413 additions & 947 deletions dist/index.js

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const core = require("@actions/core");
const exec = require("@actions/exec");
const fs = require("fs");
const request = require("retry-request", {
request: require("request")
});
const request = require('requestretry');

let fail_ci;
try {
Expand All @@ -27,11 +25,10 @@ try {
fail_ci = false;
}

const retryOpts = {
retries: 3
};

request("https://codecov.io/bash", retryOpts, (error, response, body) => {
request({
url: "https://codecov.io/bash",
json: false
}, (error, response, body) => {
if (error && fail_ci) {
throw error;
} else if (error) {
Expand Down
71 changes: 16 additions & 55 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@zeit/ncc": "^0.22.3",
"fs": "0.0.1-security",
"request": "^2.88.0",
"retry-request": "^4.1.1"
"requestretry": "^4.1.1"
},
"devDependencies": {}
}

0 comments on commit f40f110

Please sign in to comment.