There was an error while loading. Please reload this page.
1 parent 253e872 commit 1946925Copy full SHA for 1946925
1 file changed
.github/workflows/contract-ci.yml
@@ -39,7 +39,7 @@ jobs:
39
- name: Ensure Cargo.lock is updated when Cargo.toml changes
40
if: github.event_name == 'pull_request'
41
run: |
42
- git fetch origin "${{ github.base_ref }}" --depth=1
+ git fetch origin "${{ github.base_ref }}"
43
changed_files="$(git diff --name-only "origin/${{ github.base_ref }}...HEAD" -- app/onchain/Cargo.toml app/onchain/Cargo.lock)"
44
if echo "$changed_files" | grep -q '^app/onchain/Cargo.toml$' && ! echo "$changed_files" | grep -q '^app/onchain/Cargo.lock$'; then
45
echo "Cargo.toml changed without updating Cargo.lock."
0 commit comments