Update src/cache-restore.ts

Co-authored-by: Alex Shcherbakov <candiduslynx@users.noreply.github.com>
pull/366/head
Erez Rokah 2 years ago committed by GitHub
parent acb2fd8040
commit 847b9da5d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

Loading…
Cancel
Save