Use GITHUB_WORKFLOW to generate cache key (#15)

This commit is contained in:
mlga 2023-11-07 22:59:29 +01:00 committed by GitHub
parent 393c8c7871
commit 9c00f9cafd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,6 +136,13 @@ export async function getPrimaryCacheKey() {
core.debug(`Hashing target profile = ${cacheTarget}`);
hasher.update(cacheTarget);
const workflow = process.env.GITHUB_WORKFLOW;
if (workflow) {
core.debug(`Hashing GITHUB_WORKFLOW = ${workflow}`);
hasher.update(workflow);
}
const job = process.env.GITHUB_JOB;
if (job) {