Skip to content

Commit

Permalink
Fix wrong cacheDependencyPathHash (#201)
Browse files Browse the repository at this point in the history
Introduced in #200 and not
caught because the test is not needed for automerge to pass
  • Loading branch information
eifinger authored Dec 20, 2024
1 parent e3fb95a commit 180f8b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/save-cache/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/setup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/cache/restore-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ async function computeKeys(version: string): Promise<string> {
`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.`,
);
}
}
if (cacheDependencyPathHash === "-") {
cacheDependencyPathHash = "-no-dependency-glob";
}
const suffix = cacheSuffix ? `-${cacheSuffix}` : "";
Expand Down

0 comments on commit 180f8b4

Please sign in to comment.