diff options
| author | Loris Cro <kappaloris@gmail.com> | 2022-11-25 20:41:33 +0100 |
|---|---|---|
| committer | Loris Cro <kappaloris@gmail.com> | 2022-11-25 20:41:33 +0100 |
| commit | 45120f929cbe87952c5361db9028495a41b656b5 (patch) | |
| tree | dd81876b10f0d6848ac20f222f28e097d0b3115a /.github | |
| parent | f4c63400f0d87c6c24e11995501f119a6029b683 (diff) | |
| download | zig-45120f929cbe87952c5361db9028495a41b656b5.tar.gz zig-45120f929cbe87952c5361db9028495a41b656b5.zip | |
ci: windows: unshallow repository before checking specific commit
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yaml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e1eb7d5b2a..eece38fe3a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 . |
