Skip to content

Commit

Permalink
shorter hash
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Sep 13, 2023
1 parent f3424fb commit e693820
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/post_run/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/setup/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const cargoLockHash = async (): Promise<string> => {
const fileBuffer = await fs.promises.readFile(glob_match[0]);
const hash = crypto.createHash('sha256');
hash.update(fileBuffer);
const hash_string = hash.digest('hex');
const hash_string = hash.digest('hex').slice(0, 5).trim();
console.log(hash_string);
return hash_string;
};
Expand Down

0 comments on commit e693820

Please sign in to comment.