Workflow tweak (#36)
Removed redundant fetch, as the checkout@v4 action already fetches the complete repo history.
This commit is contained in:
parent
ec9bdfcf5d
commit
c9bc402fb3
1 changed files with 2 additions and 10 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -20,15 +20,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
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
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v2
|
uses: actions/setup-dotnet@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -54,4 +46,4 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY}}
|
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY}}
|
||||||
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }}
|
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue