action-docker-layer-caching icon indicating copy to clipboard operation
action-docker-layer-caching copied to clipboard

Abla to skip saving cache on condition

Open xepozz opened this issue 4 years ago • 1 comments

It will be useful when you don't want to lose time to save cache.

For example, I want to skip saving cache when previous action was failed. I can specify if: condition as success() that means that cache should be saved when previous action was successful.

xepozz avatar Mar 23 '21 22:03 xepozz

This is possible via skip-save.

      - uses: satackey/[email protected]
        continue-on-error: true
        with:
          skip-save: true

tkrugg avatar Jan 11 '22 14:01 tkrugg