Skip to content

Commit

Permalink
update hashes and remove automatic hash updating in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidarain1 committed Oct 16, 2024
1 parent 7bf9d07 commit b7a9dc4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ jobs:
mv hashes.json hashes.json.old
yarn updateHashes
if [ -n "$(git diff --exit-code hashes.json)" ]; then
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add hashes.json
git commit -m "Update hashes.json"
git push
echo "Hashes.json has changed. Please update the hashes.json file and commit the changes."
echo "You can use the following command in the root of the repo to update the hashes.json file:"
echo "yarn workspace @imtbl/checkout-widgets updateHashes"
exit 1
fi
build-lint-test-examples:
Expand Down
4 changes: 2 additions & 2 deletions packages/checkout/widgets-lib/hashes.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"dist/widgets.js": "sha512-uw1fOwvQzz1NTyPmOUthtEotRa4EZbhQdtkCmWn6SLtoJu9vHCMWBexVuggKV2+6rreaFGoxzhtlyW5QTpm6Lg==",
"dist/index.js": "sha512-eAtxIu7hnDtZekojoiesVupi1A4ppNr4cc5buRbsuKuUO0/6mGF9/lEoT7fVy4R7Kiwym//holHTsUlhpoSHIA=="
"dist/widgets.js": "sha512-RWByPTN1kse+KPLX87LUZiDdvpOHsFHerjpN67OwLxkMz0pKNH0G2Vbl33f6Odp01e5Z9rwKEe6idmbl+j+rXA==",
"dist/index.js": "sha512-1bAiGF3nKH5cKgEEh+uJNGrWO43UG7kHqm+1qRARC6ujUb5JSxr+4t5XxTCqcG8Zqol1845qfibshQcRjGt6bA=="
}
2 changes: 0 additions & 2 deletions packages/checkout/widgets-lib/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export * from './factory';

export const testHashUpdate = 'testHashUpdate';

0 comments on commit b7a9dc4

Please sign in to comment.