mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-12 14:07:25 +00:00
Add timeout for loading Codecov bash script
This commit is contained in:
parent
fadbb25281
commit
5c41cebf2f
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
|
@ -30,7 +30,8 @@ try {
|
||||||
|
|
||||||
request({
|
request({
|
||||||
url: "https://codecov.io/bash",
|
url: "https://codecov.io/bash",
|
||||||
json: false
|
json: false,
|
||||||
|
timeout: 30000,
|
||||||
}, (error, response, body) => {
|
}, (error, response, body) => {
|
||||||
try {
|
try {
|
||||||
if (error && fail_ci) {
|
if (error && fail_ci) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue