mirror of
https://github.com/actions/cache.git
synced 2025-07-15 09:20:46 +00:00
Changed input value
This commit is contained in:
parent
c451e92c29
commit
78b088d460
3 changed files with 5 additions and 5 deletions
|
@ -46,7 +46,7 @@ async function run(): Promise<void> {
|
|||
}
|
||||
|
||||
if (!cacheKey) {
|
||||
if (core.getInput(Inputs.StrictRestore) == "true") {
|
||||
if (core.getInput(Inputs.StrictRestore) == "yes") {
|
||||
throw new Error(
|
||||
`Cache with the given input key ${primaryKey} is not found, hence exiting the workflow as the strict-restore requirement is not met.`
|
||||
);
|
||||
|
@ -67,7 +67,7 @@ async function run(): Promise<void> {
|
|||
const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey);
|
||||
utils.setCacheHitOutput(isExactKeyMatch);
|
||||
|
||||
if (!isExactKeyMatch && core.getInput(Inputs.StrictRestore) == "true") {
|
||||
if (!isExactKeyMatch && core.getInput(Inputs.StrictRestore) == "yes") {
|
||||
throw new Error(
|
||||
`Restored cache key doesn't match the given input key ${primaryKey}, hence exiting the workflow as the strict-restore requirement is not met.`
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue