From: Lucas De Marchi Date: Wed, 12 Mar 2025 16:11:51 +0000 (-0500) Subject: ci: Drop double checkout where not needed X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19219f32513f3c16adbc46940de575e6d50d7e55;p=thirdparty%2Fkmod.git ci: Drop double checkout where not needed 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 Reviewed-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/321 --- diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a9b2cb15..f898df24 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index c0564199..1d6a833c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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