There is no way to skip a build conditionally like this, but what you could do is wrap the steps up in a script that first checks if the cache has changed, and if it has not return an exit code of 0 rather than continuing to regenerate the cache.
levlaz
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Skip a step in a job if cache is found | 2 | 3581 | April 5, 2020 | |
| Is it possible to run or skip a job based on the output of a previous job? | 1 | 1485 | November 7, 2022 | |
| Restore cache from another job | 2 | 4420 | March 7, 2019 | |
| How to run commands only if there is no cache | 3 | 3991 | December 21, 2016 | |
| [ci skip] still runs one out of five jobs | 0 | 568 | June 20, 2018 |