Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/foundry-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: foundry.lock

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7

- name: Check foundry.lock
run: |
status=0
while read -r path rev; do
actual=$(git ls-tree HEAD "$path" | awk '{print $3}')
if [ "$actual" != "$rev" ]; then
echo "::error::$path: foundry.lock rev $rev does not match submodule commit $actual"
status=1
fi
done < <(jq -r 'to_entries[] | "\(.key) \(.value | to_entries[0].value.rev)"' foundry.lock)
exit $status
2 changes: 1 addition & 1 deletion foundry.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lib/safe-smart-account": {
"tag": {
"name": "v1.5.0",
"rev": "dc437e8fba8b4805d76bcbd1c668c9fd3d1e83be"
"rev": "77901a5a1ad835b74ad3b72f73a8412cfe491c57"
}
}
}