1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-go synced 2025-06-10 20:42:22 +02:00

Add imageOS to primaryKey

https://github.com/actions/setup-go/issues/368
This commit is contained in:
Sergey Dolin 2023-06-06 09:27:42 +02:00
parent 992f068900
commit a4d10f0ea4
2 changed files with 4 additions and 2 deletions

View file

@ -29,7 +29,8 @@ export const restoreCache = async (
);
}
const primaryKey = `setup-go-${platform}-go-${versionSpec}-${fileHash}`;
const imageOS = process.env.ImageOS || 'self-hosted';
const primaryKey = `setup-go-${platform}-${imageOS}-go-${versionSpec}-${fileHash}`;
core.debug(`primary key is ${primaryKey}`);
core.saveState(State.CachePrimaryKey, primaryKey);