Skip to content

chore(ci): Add --skip-duplicate to NuGet push for idempotent re-runs#21

Merged
agneszitte merged 1 commit into
mainfrom
dev/agzi/ci-skip-duplicate-nuget-push
Mar 18, 2026
Merged

chore(ci): Add --skip-duplicate to NuGet push for idempotent re-runs#21
agneszitte merged 1 commit into
mainfrom
dev/agzi/ci-skip-duplicate-nuget-push

Conversation

@agneszitte

@agneszitte agneszitte commented Mar 17, 2026

Copy link
Copy Markdown
Member

Summary

Add --skip-duplicate flag to dotnet nuget push commands in CI workflows to make NuGet publish steps idempotent.

Why

When re-running CI, publish jobs fail because the package version already exists. The --skip-duplicate flag allows safe re-runs without failing on already-published packages.

This is part of an org-wide effort to make all unoplatform repo CI publish steps resilient to re-runs after certificate rotation or transient failures.

Related to unoplatform/uno.templates#2029

Copilot AI review requested due to automatic review settings March 17, 2026 20:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes NuGet publish steps in the GitHub Actions CI workflow idempotent by adding --skip-duplicate to dotnet nuget push, allowing safe re-runs when packages have already been published (e.g., after certificate rotation).

Changes:

  • Add --skip-duplicate to NuGet push in the publish_dev job.
  • Add --skip-duplicate to NuGet push in the publish_prod job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/main.yml
@agneszitte
agneszitte requested review from jeromelaban and kazo0 March 17, 2026 21:21
@agneszitte
agneszitte merged commit 629e070 into main Mar 18, 2026
23 of 24 checks passed
@agneszitte
agneszitte deleted the dev/agzi/ci-skip-duplicate-nuget-push branch March 18, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants