Skip to content

Commit 602ff28

Browse files
committed
Update nuget-push-to-esdm-nexus.yml
1 parent 3ffd8a3 commit 602ff28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/nuget-push-to-esdm-nexus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
echo "Found packages: $PACKAGES"
3939
for PACKAGE in $PACKAGES; do
4040
echo "Pushing $PACKAGE to Nexus"
41-
dotnet nuget push "$PACKAGE" --source esdm-nuget-hosted --skip-duplicate
41+
dotnet nuget push "$PACKAGE" --source esdm-nuget-hosted --skip-duplicate || echo "Skipping duplicate package: $PACKAGE"
4242
done
4343
- name: Find and Push NuGet packages to nuget.org
4444
run: |
@@ -50,5 +50,5 @@ jobs:
5050
echo "Found packages: $PACKAGES"
5151
for PACKAGE in $PACKAGES; do
5252
echo "Pushing $PACKAGE to nuget.org"
53-
dotnet nuget push "$PACKAGE" --api-key "$NUGET_ORG_API_KEY" --source "https://api.nuget.org/v3/index.json" --skip-duplicate
53+
dotnet nuget push "$PACKAGE" --api-key "$NUGET_ORG_API_KEY" --source "https://api.nuget.org/v3/index.json" --skip-duplicate || echo "Warning - failed package: $PACKAGE"
5454
done

0 commit comments

Comments
 (0)