This commit is contained in:
Joel Male 2024-03-31 22:24:25 +10:00
parent 6646f8ee90
commit 414ae453c9
4 changed files with 12 additions and 1 deletions

3
dist/index.js vendored
View File

@ -56,6 +56,9 @@ const http_1 = __nccwpck_require__(4319);
const github_1 = __nccwpck_require__(5438);
function run() {
return __awaiter(this, void 0, void 0, function* () {
if (github_1.context.job === 'post') {
return;
}
const url = core.getInput('url')
? core.getInput('url')
: process.env.WEBHOOK_URL

3
dist/main.js vendored
View File

@ -14,6 +14,9 @@ const http_1 = require("./http");
const github_1 = require("@actions/github");
function run() {
return __awaiter(this, void 0, void 0, function* () {
if (github_1.context.job === 'post') {
return;
}
const url = core.getInput('url')
? core.getInput('url')
: process.env.WEBHOOK_URL

2
dist/main.js.map vendored
View File

@ -1 +1 @@
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAqC;AACrC,iCAA2B;AAC3B,4CAAuC;AAEvC,SAAe,GAAG;;QAChB,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;YAC9B,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;YACtB,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW;gBACvB,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW;gBACzB,CAAC,CAAC,EAAE,CAAA;QAER,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;YACtC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;YAC1B,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO;gBACnB,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO;gBACrB,CAAC,CAAC,IAAI,CAAA;QAEV,IAAI,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC9B,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;YACvB,C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,UAAU,GAAG,EAAE,CAAC,CAAA;YAC1B,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;YACjB,OAAM;QACR,CAAC,CAAC,CAAA;IACN,CAAC;CAAA;AAED,SAAS,KAAK,CAAC,UAAU;IAEvB,IAAI,CAAC,SAAS,CAAC,yBAAyB,UAAU,EAAE,CAAC,CAAA;IAErD,MAAM,IAAI,KAAK,CAAC,oCAAoC,UAAU,EAAE,CAAC,CAAA;AACnE,CAAC;AAED,GAAG,EAAE,CAAA"}

View File

@ -3,6 +3,11 @@ 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