mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-12-01 20:05:21 +01:00
wip: fix numerous issues due to action changes
This commit is contained in:
parent
86cb5a09be
commit
949b9a22f0
1 changed files with 5 additions and 2 deletions
|
@ -7,16 +7,19 @@ async function run() {
|
||||||
: process.env.WEBHOOK_URL
|
: process.env.WEBHOOK_URL
|
||||||
? process.env.WEBHOOK_URL
|
? process.env.WEBHOOK_URL
|
||||||
: ''
|
: ''
|
||||||
|
|
||||||
const headers = core.getInput('headers')
|
const headers = core.getInput('headers')
|
||||||
? core.getInput('headers')
|
? core.getInput('headers')
|
||||||
: process.env.headers
|
: process.env.headers
|
||||||
? process.env.headers
|
? process.env.headers
|
||||||
: null
|
: null
|
||||||
|
|
||||||
const body = core.getInput('body')
|
const body = core.getInput('body')
|
||||||
? core.getInput('body')
|
? core.getInput('body')
|
||||||
: process.env.data
|
: process.env.data
|
||||||
? process.env.data
|
? process.env.data
|
||||||
: null
|
: null
|
||||||
|
|
||||||
const insecure = core.getInput('insecure')
|
const insecure = core.getInput('insecure')
|
||||||
? core.getInput('insecure') == 'true'
|
? core.getInput('insecure') == 'true'
|
||||||
: process.env.insecure
|
: process.env.insecure
|
||||||
|
@ -47,12 +50,12 @@ async function run() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// output the status
|
|
||||||
core.setOutput('statusCode', res.status)
|
|
||||||
// report on the status code
|
// report on the status code
|
||||||
core.info(`Received status code: ${res.status}`)
|
core.info(`Received status code: ${res.status}`)
|
||||||
|
|
||||||
// debug end
|
// debug end
|
||||||
core.info(new Date().toTimeString())
|
core.info(new Date().toTimeString())
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
error(err.status)
|
error(err.status)
|
||||||
|
|
Loading…
Reference in a new issue