Rename ActionCache to ActionsCache

This commit is contained in:
Sergey Dolin
2023-07-04 18:29:58 +02:00
parent 765f3db869
commit a9c16cbf4d
8 changed files with 16 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ import path from 'path';
import os from 'os';
import * as core from '@actions/core';
import {uploadFileToActionsCache} from '../actions-cache/upload';
import {downloadFileFromActionCache} from '../actions-cache/download';
import {downloadFileFromActionsCache} from '../actions-cache/download';
const CACHE_KEY = '_state';
const CACHE_VERSION = '1';
@@ -30,10 +30,10 @@ export class StateCacheStorage implements IStateStorage {
const tmpDir = fs.mkdtempSync('state-');
const fileName = path.join(tmpDir, STATE_FILE);
try {
await downloadFileFromActionCache(fileName, CACHE_KEY, CACHE_VERSION);
await downloadFileFromActionsCache(fileName, CACHE_KEY, CACHE_VERSION);
if (!fs.existsSync(fileName)) {
core.info(
'There is no state persisted, probably because of the very first run or previous run failed'
'The stored state has not been found, probably because of the very first run or the previous run failed'
);
return '';
}