1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-go synced 2025-06-11 04:52:25 +02:00

Limit to Linux only

This commit is contained in:
Sergey Dolin 2023-06-07 08:56:00 +02:00
parent a4d10f0ea4
commit 4e0b6c77c6
2 changed files with 5 additions and 4 deletions

View file

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