]> git.sesse.net Git - stockfish/commitdiff
Cleanup git checkout actions
authorSebastian Buchwald <UniQP@web.de>
Sun, 10 Sep 2023 10:15:06 +0000 (12:15 +0200)
committerDisservin <disservin.social@gmail.com>
Mon, 11 Sep 2023 20:15:22 +0000 (22:15 +0200)
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
.github/workflows/stockfish_compile_test.yml
.github/workflows/stockfish_sanitizers.yml

index 99c4259ac756f0d816c65aaaee3252f644fa3bef..8ea1837d032eb1ff563933f87dbef4e9d9c773ac 100644 (file)
@@ -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: |
index 90e01537d571fdb2d448023d5eed8fa8b3deec3f..808fcb55f7b3b70ef2fdcdbdf74db41d1a8ecc5f 100644 (file)
@@ -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'
index 228742b3f12d89a9bc5ad61e63edf16f017eb923..b137f50eb06bd76dfd08cf48559d5c3e1d51b3ef 100644 (file)
@@ -36,8 +36,6 @@ jobs:
         shell: ${{ matrix.config.shell }}
     steps:
       - uses: actions/checkout@v3
-        with:
-          fetch-depth: 0
 
       - name: Download required linux packages
         run: |