Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeela Lifshitz authored and Yeela Lifshitz committed Aug 21, 2024
1 parent bce9f49 commit 288923b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/get-condition-vars.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
module.exports = core => {
const { IS_NON_COMMIT_ARG, ENABLE_CACHE_ARG, RUN_ID_ARG } = process.env
try {
core.info(`RUN_ID_ARG value ${RUN_ID_ARG}. type: ${ typeof RUN_ID_ARG }`)
const isRunIdExists = !!RUN_ID_ARG
core.info(`isRunIdExists value ${isRunIdExists}. type: ${ typeof RUN_ID_ARG }`)
const skipGitClone =
IS_NON_COMMIT_ARG === 'true' &&
ENABLE_CACHE_ARG === 'true' &&
isRunIdExists

core.info(`skipGitClone value ${skipGitClone}. type: ${ typeof skipGitClone }`)
core.info(
`IS_NON_COMMIT_ARG type: ${typeof IS_NON_COMMIT_ARG}. ENABLE_CACHE_ARG type: ${typeof ENABLE_CACHE_ARG}.`
`IS_NON_COMMIT_ARG type: ${typeof IS_NON_COMMIT_ARG}. ENABLE_CACHE_ARG type: ${typeof ENABLE_CACHE_ARG}. isRunIdExists`
)

core.exportVariable('IS_NON_COMMIT_EVENT', IS_NON_COMMIT_ARG)
Expand Down

0 comments on commit 288923b

Please sign in to comment.