diff --git a/action.yml b/action.yml index db7060de..c16f5e15 100644 --- a/action.yml +++ b/action.yml @@ -156,4 +156,4 @@ runs: with: retention-days: 2 name: output - path: code/output \ No newline at end of file + path: code/output diff --git a/scripts/getConditionVars.js b/scripts/getConditionVars.js index 187f107b..6eb4d0e4 100644 --- a/scripts/getConditionVars.js +++ b/scripts/getConditionVars.js @@ -1,13 +1,11 @@ - - module.exports = core => { - const CLIENT_PAYLOAD_ARG = process.env.CLIENT_PAYLOAD_ARG; - try { - const payload = JSON.parse(CLIENT_PAYLOAD_ARG); - const isNonCommitEvent = payload.isNonCommitEvent || false; - core.exportVariable('IS_NON_COMMIT_EVENT', isNonCommitEvent); - } catch (error) { - core.setFailed(error.message); - core.exportVariable('IS_NON_COMMIT_EVENT', false); - } - }; \ No newline at end of file + const CLIENT_PAYLOAD_ARG = process.env.CLIENT_PAYLOAD_ARG + try { + const payload = JSON.parse(CLIENT_PAYLOAD_ARG) + const isNonCommitEvent = payload.isNonCommitEvent || false + core.exportVariable('IS_NON_COMMIT_EVENT', isNonCommitEvent) + } catch (error) { + core.setFailed(error.message) + core.exportVariable('IS_NON_COMMIT_EVENT', false) + } +}