mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-11-25 08:56:57 +01:00
feature: fix post step
This commit is contained in:
parent
414ae453c9
commit
113290b45d
2 changed files with 0 additions and 6 deletions
|
@ -26,4 +26,3 @@ outputs:
|
||||||
runs:
|
runs:
|
||||||
using: 'node20'
|
using: 'node20'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
post: 'dist/index.js'
|
|
||||||
|
|
|
@ -3,11 +3,6 @@ import {http} from './http'
|
||||||
import {context} from '@actions/github'
|
import {context} from '@actions/github'
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
// if its a post job do nothing
|
|
||||||
if (context.job === 'post') {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
const url = core.getInput('url')
|
const url = core.getInput('url')
|
||||||
? core.getInput('url')
|
? core.getInput('url')
|
||||||
: process.env.WEBHOOK_URL
|
: process.env.WEBHOOK_URL
|
||||||
|
|
Loading…
Reference in a new issue