Skip to content

Commit e8ba673

Browse files
[IDP-2061] Fix Nuget Duplication in CI (#98)
add --skip-duplicate option to nuget push command
1 parent 34195d1 commit e8ba673

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@ on:
88
push:
99
branches:
1010
- "renovate/**"
11-
11+
12+
# Prevent duplicate runs if Renovate falls back to creating a PR
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
15+
cancel-in-progress: true
16+
1217
jobs:
1318
ci:
1419
runs-on: ubuntu-latest
1520

21+
1622
steps:
1723
- uses: actions/checkout@v4
1824
with:

Build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Process {
2626
Exec { & dotnet pack -c Release -o "$outputDir" }
2727

2828
if (($null -ne $env:NUGET_SOURCE ) -and ($null -ne $env:NUGET_API_KEY)) {
29-
Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY }
29+
Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY --skip-duplicate }
3030
}
3131
}
3232
finally {

0 commit comments

Comments
 (0)