]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
ci: Drop double checkout where not needed
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 12 Mar 2025 16:11:51 +0000 (11:11 -0500)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 25 Mar 2025 19:01:26 +0000 (14:01 -0500)
The only workflow that needs a double checkout is the main one, all the
others should be fine without.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/321
.github/workflows/codeql.yml
.github/workflows/coverage.yml

index a9b2cb154b5915a1460c4b91199f4828b60fb59d..f898df24b9346f2777568db8b41126a49f7b994d 100644 (file)
@@ -35,23 +35,14 @@ jobs:
       image: ${{ matrix.container }}
 
     steps:
-      - name: Sparse checkout the local actions
+      - name: Checkout
         uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-        with:
-          sparse-checkout: .github
 
       - name: Setup OS
         uses: ./.github/actions/setup-os
 
-      - name: Checkout the whole project
-        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
       - name: Set the environment
         run: |
-          # The second checkout above claims to set safe.directory, yet it
-          # doesn't quite work. Perhaps our double/sparse checkout is to blame?
-          git config --global --add safe.directory '*'
-
           .github/print-kdir.sh >> "$GITHUB_ENV"
 
       - name: Initialize CodeQL
index c0564199fd60a83973a8c65d1297f2352718020e..1d6a833cd82eb5a26b84df72610d784d54fc1f0a 100644 (file)
@@ -32,23 +32,14 @@ jobs:
       image: ${{ matrix.container }}
 
     steps:
-      - name: Sparse checkout the local actions
+      - name: Checkout
         uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-        with:
-          sparse-checkout: .github
 
       - name: Setup OS
         uses: ./.github/actions/setup-os
 
-      - name: Checkout the whole project
-        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
       - name: Set the environment
         run: |
-          # The second checkout above claims to set safe.directory, yet it
-          # doesn't quite work. Perhaps our double/sparse checkout is to blame?
-          git config --global --add safe.directory '*'
-
           .github/print-kdir.sh >> "$GITHUB_ENV"
 
       - name: Build