I would like to conditionally exit a job. Basically, I’m curling some info from the PR, and, depending on the data from that request, writing to a file, or not. I would like to exit the job depending on whether the file exists or not.
steps: - attach_workspace: at: ~/ deploy_info - run: if [ ! -f ~/deploy_info/test_tags.txt ] ; then exit 0 ; fi
But that just exits that command and continues with the job