Skip to content

Commit 180f8b4

Browse files
authored
Fix wrong cacheDependencyPathHash (#201)
Introduced in #200 and not caught because the test is not needed for automerge to pass
1 parent e3fb95a commit 180f8b4

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

dist/save-cache/index.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup/index.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cache/restore-cache.ts

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ async function computeKeys(version: string): Promise<string> {
4747
`No file matched to [${cacheDependencyGlob.split("\n").join(",")}]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.`,
4848
);
4949
}
50+
}
51+
if (cacheDependencyPathHash === "-") {
5052
cacheDependencyPathHash = "-no-dependency-glob";
5153
}
5254
const suffix = cacheSuffix ? `-${cacheSuffix}` : "";

0 commit comments

Comments
 (0)