Workflow tweak (#36)

Removed redundant fetch, as the checkout@v4 action already fetches the complete repo history.
This commit is contained in:
Peder Holdgaard Pedersen 2025-03-07 18:38:40 +01:00 • committed by GitHub
commit c9bc402fb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}