diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f2aa90..3b58a74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,11 @@ on: push: branches: - "renovate/**" + +# Prevent duplicate runs if Renovate falls back to creating a PR +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true jobs: ci: diff --git a/Build.ps1 b/Build.ps1 index 954c396..8b3af9d 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -26,7 +26,7 @@ Process { Exec { & dotnet pack -c Release -o "$outputDir" } if (($null -ne $env:NUGET_SOURCE ) -and ($null -ne $env:NUGET_API_KEY)) { - Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY } + Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY --skip-duplicate } } } finally {