mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-08-25 08:08:00 +00:00
wip
This commit is contained in:
parent
1143d5b401
commit
9650c71451
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -7008,6 +7008,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}`);
|
||||||
http_1.http
|
http_1.http
|
||||||
.make(url, headers, body, insecure)
|
.make(url, headers, body, insecure)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
@ -7017,6 +7018,7 @@ function run() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
core.info(`Error: ${err}`);
|
||||||
error(err.status);
|
error(err.status);
|
||||||
return;
|
return;
|
||||||
});
|
});
|
||||||
|
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.
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache
generated
vendored
Binary file not shown.
@ -33,6 +33,9 @@ async function run() {
|
|||||||
throw new Error('A url is required to run this action.')
|
throw new Error('A url is required to run this action.')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// initial info
|
||||||
|
core.info(`Sending webhook request to ${url}`)
|
||||||
|
|
||||||
// make the request
|
// make the request
|
||||||
http
|
http
|
||||||
.make(url, headers, body, insecure)
|
.make(url, headers, body, insecure)
|
||||||
@ -46,6 +49,7 @@ async function run() {
|
|||||||
|
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
core.info(`Error: ${err}`)
|
||||||
error(err.status)
|
error(err.status)
|
||||||
return
|
return
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user