Skip release-or-main when manual snapshot workflows run#6935
Merged
ajpallares merged 1 commit intoJun 8, 2026
Conversation
Prevent duplicate snapshot PRs when generate_revenuecatui_snapshots, generate_snapshots, or generate_swiftinterface is set on main. Co-authored-by: Cursor <cursoragent@cursor.com>
facumenzella
approved these changes
Jun 8, 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.
Motivation
Triggering
generate_revenuecatui_snapshotsonmain(e.g. pipeline 38929) ran bothrelease-or-mainandgenerate_revenuecatui_snapshots, so RevenueCatUI snapshot jobs executed twice and opened duplicate PRs.Description
release-or-mainwhengenerate_snapshots,generate_revenuecatui_snapshots, orgenerate_swiftinterfaceis true, matching the guards already used byrun-all-tests.mainorrelease/*should now run only their dedicated workflow.Note
Low Risk
CI workflow gating only; no application code or release artifact logic changes.
Overview
Adds three pipeline-parameter guards to the
release-or-mainworkflow so it does not run whengenerate_snapshots,generate_revenuecatui_snapshots, orgenerate_swiftinterfaceis enabled—same exclusionsrun-all-testsalready uses.Manual snapshot or swiftinterface pipelines on
mainorrelease/*should now execute only their dedicated workflows (e.g.generate_revenuecatui_snapshots), avoiding a second pass throughrelease-or-mainthat duplicated RevenueCatUI snapshot work and opened duplicate PRs.Reviewed by Cursor Bugbot for commit 4d1ac37. Bugbot is set up for automated code reviews on this repo. Configure here.