Removed input and state and added env

This commit is contained in:
Sankalp Kotewar 2022-11-22 05:45:42 +00:00 committed by GitHub
commit 133764e0c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 29 deletions

View file

@ -18,9 +18,6 @@ inputs:
description: 'Fail the workflow if the cache is not found for the given key.'
required: false
default: "false"
saveCacheOnAnyFailure:
description: 'Save build cache despite of failure in the job'
default: 'no'
outputs:
cache-hit:
description: 'A boolean value to indicate an exact match was found for the primary key'
@ -28,7 +25,7 @@ runs:
using: 'node16'
main: 'dist/restore/index.js'
post: 'dist/save/index.js'
post-if: (success() || (env.INPUT_SAVECACHEONANYFAILURE == 'yes'))
post-if: (success() || (env.SAVE_CACHE_ON_ANY_FAILURE == 'yes'))
branding:
icon: 'archive'
color: 'gray-dark'