feat: fix syntax error

This commit is contained in:
Joel Male
2024-03-28 12:51:03 +10:00
parent 3af123dc1e
commit a976623266
4 changed files with 11 additions and 7 deletions
+3 -2
View File
@@ -76,8 +76,9 @@ function run() {
: process.env.insecure
? process.env.insecure == 'true'
: false;
if (process.env.github_event && body) {
const decodedBody = JSON.parse(body);
const githubEvent = core.getInput('github_event') == 'true';
if (githubEvent) {
const decodedBody = JSON.parse(body || '{}');
decodedBody.github_event = github_1.context;
body = JSON.stringify(decodedBody);
}