From df32f042e7759cd404aa86398c0338c051a09fbc Mon Sep 17 00:00:00 2001 From: Robert Adam Date: Sun, 1 May 2022 17:35:23 +0200 Subject: [PATCH] CI: Use checkout@v3 Also restrict ourselves to shallow clones for the Build workflow. --- .github/workflows/build.yml | 3 ++- .github/workflows/pr-checks.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29f1f3bdf..69e37231b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,9 +27,10 @@ jobs: shell: bash - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: 'recursive' + fetch-depth: 1 - name: Set environment variables diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index d93a92f89..deef6d06b 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -12,7 +12,7 @@ jobs: run: sudo apt install python3 shell: bash - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: # Assume that there are not >200 new commits that need checking fetch-depth: 200