Treat CocoaPods Trunk duplicate pushes as a no-op#1686
Open
nan-li wants to merge 2 commits into
Open
Conversation
Allows re-running publish-release after a Trunk error that accepted the version server-side, so the workflow can continue with remaining steps. Co-authored-by: Cursor <cursoragent@cursor.com>
Makes skipped trunk pushes visible in the Actions annotations panel without opening step logs. Co-authored-by: Cursor <cursoragent@cursor.com>
fadi-george
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
One Line Summary
Treat already-published CocoaPods versions as a skipped no-op so the
publish-releaseworkflow can be re-run after a partial upload success.Details
Motivation
Pushing to cocoapods with
pod trunk pushcan return an internal server error after the version has already been accepted. Re-running the workflow then fails withUnable to accept duplicate entry, blocking the remaining steps of the workflow (XCFramework publish, SPM release, wrapper PRs). This change treats that duplicate as a no-op and emits a workflow warning so the skip is visible in Actions annotations.Scope
Only
.github/workflows/publish-release.ymlCocoaPods publish steps. No SDK runtime behavior changes.Testing
Unit testing
Not applicable — CI workflow-only change.
Manual testing
5.3.0-beta-03hit a cocoapods internal server error (but the version was already accepted) and returned early.publish-releasefor5.3.0-beta-03: OneSignal Pod was skipped as a duplicate, and workflow continued successfully.Affected code checklist
Checklist
Overview
Testing
Final pass
Made with Cursor