feat: finish updates & adding github event support

This commit is contained in:
Joel Male
2024-03-28 13:00:21 +10:00
parent a976623266
commit 14b045decf
11 changed files with 234 additions and 26 deletions
+5 -5
View File
@@ -72,14 +72,14 @@ function run() {
? process.env.data
: null;
const insecure = core.getInput('insecure')
? core.getInput('insecure') == 'true'
? core.getInput('insecure') === 'true'
: process.env.insecure
? process.env.insecure == 'true'
? process.env.insecure === 'true'
: false;
const githubEvent = core.getInput('github_event') == 'true';
if (githubEvent) {
const githubEventPayload = core.getInput('github_event_payload') === 'true';
if (githubEventPayload) {
const decodedBody = JSON.parse(body || '{}');
decodedBody.github_event = github_1.context;
decodedBody.githubEventPayload = github_1.context.payload || {};
body = JSON.stringify(decodedBody);
}
if (!url) {