From 847b9da5d213f56681dd4ca3cfcf7b69980df2a7 Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Fri, 2 Jun 2023 15:46:36 +0300 Subject: [PATCH] Update src/cache-restore.ts Co-authored-by: Alex Shcherbakov --- src/cache-restore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cache-restore.ts b/src/cache-restore.ts index adfc958..0a8ee9c 100644 --- a/src/cache-restore.ts +++ b/src/cache-restore.ts @@ -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);