Skip to content

Commit

Permalink
Fix handling custom hash input when not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
macko911 committed Sep 11, 2024
1 parent 14f4242 commit 8da536f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/restore/index.js

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

2 changes: 1 addition & 1 deletion src/restore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function restoreS3Cache({
awsOptions
}: RestoreS3CacheActionArgs) {
const currentRepoTreeHash = await getCurrentRepoTreeHash()
const treeHash = customHash ?? currentRepoTreeHash
const treeHash = customHash || currentRepoTreeHash

const key = `cache/${repo.owner}/${repo.repo}/${keyPrefix}/${treeHash}`
const fileExists = await fileExistsInS3({key, bucket, awsOptions})
Expand Down

0 comments on commit 8da536f

Please sign in to comment.