Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeela Lifshitz authored and Yeela Lifshitz committed Aug 15, 2024
1 parent c6dd73b commit d23f292
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ runs:
with:
retention-days: 2
name: output
path: code/output
path: code/output
22 changes: 10 additions & 12 deletions scripts/getConditionVars.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@


module.exports = core => {

Check failure on line 1 in scripts/getConditionVars.js

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Filename 'getConditionVars.js' does not match the naming convention

Check failure on line 1 in scripts/getConditionVars.js

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Expected "export" or "export default"
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);
}
};
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)
}
}

0 comments on commit d23f292

Please sign in to comment.