mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-04-29 13:30:03 +00:00
Use GITHUB_WORKFLOW to generate cache key
This commit is contained in:
parent
393c8c7871
commit
d6edeec1a5
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue