mirror of https://github.com/actions/cache.git
Update cache availability checks to include S3 save capability in restore and save implementations
parent
3a15256b35
commit
26cf033594
|
@ -17,7 +17,7 @@ export async function restoreImpl(
|
|||
earlyExit?: boolean | undefined
|
||||
): Promise<string | undefined> {
|
||||
try {
|
||||
if (!utils.isCacheFeatureAvailable()) {
|
||||
if (!canSaveToS3 && !utils.isCacheFeatureAvailable()) {
|
||||
core.setOutput(Outputs.CacheHit, "false");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ export async function saveImpl(
|
|||
): Promise<number | void> {
|
||||
let cacheId = -1;
|
||||
try {
|
||||
if (!utils.isCacheFeatureAvailable()) {
|
||||
if (!canSaveToS3 && !utils.isCacheFeatureAvailable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue