Skip to content

Add update-error-codes workflow#6981

Merged
AlvaroBrey merged 3 commits into
mainfrom
error-codes-propagation
Jun 12, 2026
Merged

Add update-error-codes workflow#6981
AlvaroBrey merged 3 commits into
mainfrom
error-codes-propagation

Conversation

@AlvaroBrey

@AlvaroBrey AlvaroBrey commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Adds the update-error-codes workflow (gated on action=update_error_codes) that runs revenuecat/update-error-codes@3.21.0 on macos-executor: copies the generated Sources/Generated/ErrorCode.swift from purchases-error-codes, refreshes the swiftinterface baselines, and opens/updates the PR. Bumps the orb to 3.21.0.

Merge after the orb is published and the plugin pin is bumped (bundle update fastlane-plugin-revenuecat_internal).


Note

Low Risk
CI and dependency pin changes only; no runtime SDK logic. Merge timing depends on orb 3.21.0 being published as noted in the PR description.

Overview
Adds a manual CircleCI pipeline action update_error_codes so CI can sync generated error codes and open/update a PR without running the full release-or-main suite on that trigger.

The new update-error-codes workflow runs when action=update_error_codes, invoking revenuecat/update-error-codes from revenuecat/sdks-common-config@3.21.0 (orb bumped from 3.20.0). It targets iOS, writes Sources/Generated/ErrorCode.swift, commits Sources/Generated/ErrorCode.swift and api, uses macos-executor with the swiftinterface Xcode version, and runs update_swiftinterface_baselines for the RevenueCat scheme after install-dependencies.

release-or-main now skips when action is update_error_codes (same pattern as bump). Gemfile.lock pins a newer fastlane-plugin-revenuecat_internal revision for the orb/plugin stack.

Reviewed by Cursor Bugbot for commit 98d9caa. Bugbot is set up for automated code reviews on this repo. Configure here.

@AlvaroBrey AlvaroBrey self-assigned this Jun 11, 2026
@AlvaroBrey AlvaroBrey marked this pull request as ready for review June 12, 2026 11:03
@AlvaroBrey AlvaroBrey requested a review from a team as a code owner June 12, 2026 11:03

@ajpallares ajpallares left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very cool! 🙌

@AlvaroBrey AlvaroBrey force-pushed the error-codes-propagation branch from b63c2e2 to 98d9caa Compare June 12, 2026 15:31
@AlvaroBrey AlvaroBrey enabled auto-merge (squash) June 12, 2026 15:31
@AlvaroBrey AlvaroBrey merged commit 039e96b into main Jun 12, 2026
37 of 42 checks passed
@AlvaroBrey AlvaroBrey deleted the error-codes-propagation branch June 12, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants