mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-08-24 00:49:00 +08:00
feature: fix post step
This commit is contained in:
@@ -26,4 +26,3 @@ outputs:
|
||||
runs:
|
||||
using: 'node20'
|
||||
main: 'dist/index.js'
|
||||
post: 'dist/index.js'
|
||||
|
||||
@@ -3,11 +3,6 @@ import {http} from './http'
|
||||
import {context} from '@actions/github'
|
||||
|
||||
async function run() {
|
||||
// if its a post job do nothing
|
||||
if (context.job === 'post') {
|
||||
return
|
||||
}
|
||||
|
||||
const url = core.getInput('url')
|
||||
? core.getInput('url')
|
||||
: process.env.WEBHOOK_URL
|
||||
|
||||
Reference in New Issue
Block a user