File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,17 @@ inputs:
1111 required : true
1212 default : docker-layer-caching-${{ github.workflow }}-{hash}
1313 restore-keys :
14- description : An ordered list of keys to use for restoring the cache if no cache hit occurred for key
14+ description : An ordered list of keys to use for restoring the cache if no cache hit occurred for key
1515 required : false
1616 default : docker-layer-caching-${{ github.workflow }}-
1717 concurrency :
1818 description : The number of concurrency when restoring and saving layers
1919 required : true
2020 default : ' 4'
21+ skip-save :
22+ description : Skip saving layers in the post step
23+ required : false
24+ default : false
2125
2226runs :
2327 using : node12
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ import { LayerCache } from './src/LayerCache'
55import { ImageDetector } from './src/ImageDetector'
66import { assertType } from 'typescript-is'
77const main = async ( ) => {
8+ if ( core . getInput ( 'skip-save' ) ) {
9+ core . info ( 'Skipping save.' )
10+ return
11+ }
12+
813 const primaryKey = core . getInput ( 'key' , { required : true } )
914 const restoredKey = JSON . parse ( core . getState ( `restored-key` ) ) as string
1015
You can’t perform that action at this time.
0 commit comments