diff --git a/ci/spec/zapier/audit.yaml b/ci/spec/zapier/audit.yaml index 398998cd9e..744dd1bf5d 100644 --- a/ci/spec/zapier/audit.yaml +++ b/ci/spec/zapier/audit.yaml @@ -3,16 +3,9 @@ audit_zapier: stage: BuildAndTest allow_failure: true script: - - | - if [[ $CI_COMMIT_BRANCH != "master" ]] && [[ $CI_COMMIT_BRANCH != "release" ]] - then - chmod +x ./ci/scripts/checkhash.sh - export zapier_exist=`./ci/scripts/checkhash.sh audit_zapier zapier` - if [[ $zapier_exist == *"true"* ]] - then - exit ${CI_JOB_SKIP_EXIT_CODE:-0} - fi - fi + - chmod +x ./ci/scripts/checkhash.sh + - export next_stage=`./ci/scripts/checkhash.sh audit_zapier zapier` + - if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi - sudo apt-get update - sudo apt-get install -y curl gcc - sudo apt-get install -y build-essential @@ -23,12 +16,8 @@ audit_zapier: - npm run audit - npm run dep-check - cd .. - - | - if [[ $CI_COMMIT_BRANCH != "master" ]] && [[ $CI_COMMIT_BRANCH != "release" ]] - then - chmod +x ./ci/scripts/storehash.sh - ./ci/scripts/storehash.sh audit_zapier zapier - fi + - chmod +x ./ci/scripts/storehash.sh + - ./ci/scripts/storehash.sh audit_zapier zapier except: refs: - hotfix-master