Skip to content

Commit 8077e2b

Browse files
Yeela LifshitzYeela Lifshitz
authored andcommitted
lint
1 parent 2b61c49 commit 8077e2b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

scripts/get-condition-vars.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
/* eslint-disable import/no-commonjs */
22

33
module.exports = core => {
4-
const { IS_NON_COMMIT_ARG, ENABLE_CACHE_ARG, RUN_ID_ARG, CACHE_DOWNLOAD_FAILED } = process.env
4+
const {
5+
IS_NON_COMMIT_ARG,
6+
ENABLE_CACHE_ARG,
7+
RUN_ID_ARG,
8+
CACHE_DOWNLOAD_FAILED
9+
} = process.env
510
try {
611
const isRunIdExists = !!RUN_ID_ARG
712

@@ -13,14 +18,13 @@ module.exports = core => {
1318
core.exportVariable('IS_NON_COMMIT_EVENT', IS_NON_COMMIT_ARG)
1419
core.exportVariable('SKIP_GIT_CLONE', skipGitClone.toString())
1520

16-
const shouldCheckout = !skipGitClone || CACHE_DOWNLOAD_FAILED === 'true';
17-
core.exportVariable('SHOULD_CHECKOUT', shouldCheckout.toString());
18-
21+
const shouldCheckout = !skipGitClone || CACHE_DOWNLOAD_FAILED === 'true'
22+
core.exportVariable('SHOULD_CHECKOUT', shouldCheckout.toString())
1923
} catch (error) {
2024
core.warn(`Failed to get condition variables: ${error.message}`)
2125

2226
core.exportVariable('IS_NON_COMMIT_EVENT', 'false')
2327
core.exportVariable('SKIP_GIT_CLONE', 'false')
2428
core.exportVariable('SHOULD_CHECKOUT', 'true')
2529
}
26-
}
30+
}

0 commit comments

Comments
 (0)