Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joelwmale committed Mar 31, 2024
1 parent 6646f8e commit 414ae45
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 414ae45

Please sign in to comment.