Skip a step in a job if cache is found

I tried searching the documentation if there is a simple way to skip a step if the cache was resolved successfully.
Any solution for that?

I don’t know of an official solution, but what I’m attempting to do is a cache check in the steps that could be skipped if cache exists, e.g. dependency install steps to skip if cache restores the dependencies.

In that case, the dependency install step can check for existence of the cached paths (directories or files), and only do the install (i.e. go through the rest of the step) if the cached paths were not found. The checking is done using bash commands within the CI run step/command.

Yes, I hoped there would be a yml command to that instead of checking via bash. Thanks though :slight_smile: