From c9bc402fb34fd6941d83ca95fc67f37870392392 Mon Sep 17 00:00:00 2001 From: Peder Holdgaard Pedersen <127606677+PederHP@users.noreply.github.com> Date: Fri, 7 Mar 2025 18:38:40 +0100 Subject: [PATCH] Workflow tweak (#36) Removed redundant fetch, as the checkout@v4 action already fetches the complete repo history. --- .github/workflows/ci.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6bed11..9c8f7c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,15 +20,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - - name: Fetch all history for all tags and branches - run: | - if [ -f "$(git rev-parse --git-dir)/shallow" ]; then - git fetch --prune --unshallow - else - echo "Repository is already complete." - fi - + - name: Setup .NET uses: actions/setup-dotnet@v2 with: @@ -54,4 +46,4 @@ jobs: env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY}} SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}