Update src/cache-restore.ts

Co-authored-by: Alex Shcherbakov <candiduslynx@users.noreply.github.com>
This commit is contained in:
Erez Rokah 2023-06-02 15:46:36 +03:00 committed by GitHub
parent acb2fd8040
commit 847b9da5d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ export const restoreCache = async (
);
}
const cacheKeyPrefix = core.getInput('cache-key-prefix') || '';
const primaryKey = `${cacheKeyPrefix}setup-go-${platform}-go-${versionSpec}-${fileHash}`;
const cacheKeyPrefix = core.getInput('cache-key-prefix') || 'setup-go'
const primaryKey = `${cacheKeyPrefix}-${platform}-go-${versionSpec}-${fileHash}`;
core.debug(`primary key is ${primaryKey}`);
core.saveState(State.CachePrimaryKey, primaryKey);