diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 32b1e85..23a16aa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,11 +8,17 @@ 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: runs-on: ubuntu-latest + steps: - uses: actions/checkout@v4 with: diff --git a/Build.ps1 b/Build.ps1 index 274e34b..85a9c8f 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 {