From 46a5cedc11bbad4a35f36aec660f270680008f37 Mon Sep 17 00:00:00 2001 From: Sebastian Buchwald Date: Sun, 10 Sep 2023 12:15:06 +0200 Subject: [PATCH] Cleanup git checkout actions We now fetch only the current commit for jobs that don't need the git history. For the Prerelease job, we don't checkout the code at all. closes https://github.com/official-stockfish/Stockfish/pull/4779 No functional change --- .github/workflows/stockfish.yml | 4 ---- .github/workflows/stockfish_compile_test.yml | 2 -- .github/workflows/stockfish_sanitizers.yml | 2 -- 3 files changed, 8 deletions(-) diff --git a/.github/workflows/stockfish.yml b/.github/workflows/stockfish.yml index 99c4259ac..8ea1837d0 100644 --- a/.github/workflows/stockfish.yml +++ b/.github/workflows/stockfish.yml @@ -16,10 +16,6 @@ jobs: if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - # returns null if no pre-release exists - name: Get Commit SHA of Latest Pre-release run: | diff --git a/.github/workflows/stockfish_compile_test.yml b/.github/workflows/stockfish_compile_test.yml index 90e01537d..808fcb55f 100644 --- a/.github/workflows/stockfish_compile_test.yml +++ b/.github/workflows/stockfish_compile_test.yml @@ -52,8 +52,6 @@ jobs: shell: ${{ matrix.config.shell }} steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - name: Setup msys and install required packages if: runner.os == 'Windows' diff --git a/.github/workflows/stockfish_sanitizers.yml b/.github/workflows/stockfish_sanitizers.yml index 228742b3f..b137f50eb 100644 --- a/.github/workflows/stockfish_sanitizers.yml +++ b/.github/workflows/stockfish_sanitizers.yml @@ -36,8 +36,6 @@ jobs: shell: ${{ matrix.config.shell }} steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - name: Download required linux packages run: |