Skip to content

Commit 659b674

Browse files
committed
Fix checkout depth, use action for Kani repo
1 parent 46c8b34 commit 659b674

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/update-subtree.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@ jobs:
1616
steps:
1717
- name: Checkout Repository
1818
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Checkout Kani
23+
uses: actions/checkout@v4
24+
with:
25+
repository: model-checking/kani
26+
path: kani-tmp
1927

2028
- name: Fetch Kani toolchain version
2129
run: |
22-
mkdir kani-tmp
2330
cd kani-tmp
24-
git init
25-
git remote add origin https://github.com/model-checking/kani
26-
git fetch --depth 1 origin main
27-
git checkout main
2831
TOOLCHAIN_DATE=$(grep -oP 'channel = "nightly-\K\d{4}-\d{2}-\d{2}' rust-toolchain.toml)
2932
COMMIT_HASH=$(curl https://static.rust-lang.org/dist/$TOOLCHAIN_DATE/channel-rust-nightly-git-commit-hash.txt)
3033
if [ -z "$COMMIT_HASH" ]; then

0 commit comments

Comments
 (0)