mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-08-25 08:08:00 +00:00
fix
This commit is contained in:
parent
ea763a9abe
commit
4f8dc442a5
9
dist/index.js
vendored
9
dist/index.js
vendored
@ -112,7 +112,7 @@ function run() {
|
|||||||
core.setFailed('A url is required to run this action.');
|
core.setFailed('A url is required to run this action.');
|
||||||
throw new Error('A url is required to run this action.');
|
throw new Error('A url is required to run this action.');
|
||||||
}
|
}
|
||||||
core.info("Sending webhook request to " + url);
|
core.info("Sending webhook request to ".concat(url));
|
||||||
core.debug(new Date().toTimeString());
|
core.debug(new Date().toTimeString());
|
||||||
http_1.http
|
http_1.http
|
||||||
.make(url, headers, body, insecure)
|
.make(url, headers, body, insecure)
|
||||||
@ -121,8 +121,7 @@ function run() {
|
|||||||
error(res.status);
|
error(res.status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
core.setOutput('statusCode', res.status);
|
core.info("Received status code: ".concat(res.status));
|
||||||
core.info("Received status code: " + res.status);
|
|
||||||
core.info(new Date().toTimeString());
|
core.info(new Date().toTimeString());
|
||||||
})
|
})
|
||||||
.catch(function (err) {
|
.catch(function (err) {
|
||||||
@ -134,8 +133,8 @@ function run() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function error(statusCode) {
|
function error(statusCode) {
|
||||||
core.setFailed("Received status code: " + statusCode);
|
core.setFailed("Received status code: ".concat(statusCode));
|
||||||
throw new Error("Request failed with status code: " + statusCode);
|
throw new Error("Request failed with status code: ".concat(statusCode));
|
||||||
}
|
}
|
||||||
run();
|
run();
|
||||||
//# sourceMappingURL=main.js.map
|
//# sourceMappingURL=main.js.map
|
||||||
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
9
dist/main.js
vendored
9
dist/main.js
vendored
@ -66,7 +66,7 @@ function run() {
|
|||||||
core.setFailed('A url is required to run this action.');
|
core.setFailed('A url is required to run this action.');
|
||||||
throw new Error('A url is required to run this action.');
|
throw new Error('A url is required to run this action.');
|
||||||
}
|
}
|
||||||
core.info("Sending webhook request to " + url);
|
core.info("Sending webhook request to ".concat(url));
|
||||||
core.debug(new Date().toTimeString());
|
core.debug(new Date().toTimeString());
|
||||||
http_1.http
|
http_1.http
|
||||||
.make(url, headers, body, insecure)
|
.make(url, headers, body, insecure)
|
||||||
@ -75,8 +75,7 @@ function run() {
|
|||||||
error(res.status);
|
error(res.status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
core.setOutput('statusCode', res.status);
|
core.info("Received status code: ".concat(res.status));
|
||||||
core.info("Received status code: " + res.status);
|
|
||||||
core.info(new Date().toTimeString());
|
core.info(new Date().toTimeString());
|
||||||
})
|
})
|
||||||
.catch(function (err) {
|
.catch(function (err) {
|
||||||
@ -88,8 +87,8 @@ function run() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function error(statusCode) {
|
function error(statusCode) {
|
||||||
core.setFailed("Received status code: " + statusCode);
|
core.setFailed("Received status code: ".concat(statusCode));
|
||||||
throw new Error("Request failed with status code: " + statusCode);
|
throw new Error("Request failed with status code: ".concat(statusCode));
|
||||||
}
|
}
|
||||||
run();
|
run();
|
||||||
//# sourceMappingURL=main.js.map
|
//# sourceMappingURL=main.js.map
|
2
dist/main.js.map
vendored
2
dist/main.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCAAqC;AACrC,+BAA2B;AAE3B,SAAe,GAAG;;;;YACV,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAC9B,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;gBACtB,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW;oBACzB,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW;oBACzB,CAAC,CAAC,EAAE,CAAA;YACA,OAAO,G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C,CAAA;gBACjB,OAAM;YACR,CAAC,CAAC,CAAA;;;;CACL;AAED,SAAS,KAAK,CAAC,UAAU;IAEvB,IAAI,CAAC,SAAS,CAAC,gCAAyB,UAAU,CAAE,CAAC,CAAA;IAErD,MAAM,IAAI,KAAK,CAAC,2CAAoC,UAAU,CAAE,CAAC,CAAA;AACnE,CAAC;AAED,GAAG,EAAE,CAAA"}
|
BIN
node_modules/@vercel/ncc/dist/ncc/cli.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/cli.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/index.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/index.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache
generated
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user