I have a build in a workflow that basically fits the model of:
jobs: build_db: - checkout - restore_cache # db - restore_cache # gems - run: # if no existing db cache (indicated by db backup file presence), generate it - save_cache # db
Most of the time, this is a noop (code moves faster than database changes - cache will usually be available), so I’m wondering if there’s a good way to omit build steps.
For steps that we control, it’s easy enough to do a little bash:
- run: [ -f filename.txt ] || generate_filename_txt
Is there a similar mechanism to skip steps that are circle built in commands? I’m mostly looking at shaving off the time restoring the gem cache if I know that I won’t need to use it.