mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 06:15:21 +00:00
ci: windows: unshallow repository before checking specific commit
This commit is contained in:
parent
f4c63400f0
commit
45120f929c
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
@ -124,6 +124,9 @@ jobs:
|
||||
run: |
|
||||
rm -rf ../ci
|
||||
cp -r ci ../
|
||||
if ((git rev-parse --is-shallow-repository) -eq "true") {
|
||||
git fetch --unshallow # `git describe` won't work on a shallow repo
|
||||
}
|
||||
git checkout ${{ inputs.commit }}
|
||||
rm -rf ci
|
||||
mv ../ci .
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user