mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-04-20 09:38:43 +00:00
Use GITHUB_WORKFLOW to generate cache key (#15)
This commit is contained in:
parent
393c8c7871
commit
9c00f9cafd
1 changed files with 7 additions and 0 deletions
|
@ -136,6 +136,13 @@ export async function getPrimaryCacheKey() {
|
||||||
core.debug(`Hashing target profile = ${cacheTarget}`);
|
core.debug(`Hashing target profile = ${cacheTarget}`);
|
||||||
hasher.update(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;
|
const job = process.env.GITHUB_JOB;
|
||||||
|
|
||||||
if (job) {
|
if (job) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue