Skip to content

Skip release-or-main when manual snapshot workflows run#6935

Merged
ajpallares merged 1 commit into
mainfrom
pallares/skip-release-or-main-for-snapshot-workflows
Jun 8, 2026
Merged

Skip release-or-main when manual snapshot workflows run#6935
ajpallares merged 1 commit into
mainfrom
pallares/skip-release-or-main-for-snapshot-workflows

Conversation

@ajpallares

@ajpallares ajpallares commented Jun 8, 2026

Copy link
Copy Markdown
Member

Motivation

Triggering generate_revenuecatui_snapshots on main (e.g. pipeline 38929) ran both release-or-main and generate_revenuecatui_snapshots, so RevenueCatUI snapshot jobs executed twice and opened duplicate PRs.

Description

  • Skip release-or-main when generate_snapshots, generate_revenuecatui_snapshots, or generate_swiftinterface is true, matching the guards already used by run-all-tests.
  • Manual snapshot/swiftinterface pipelines on main or release/* 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-main workflow so it does not run when generate_snapshots, generate_revenuecatui_snapshots, or generate_swiftinterface is enabled—same exclusions run-all-tests already uses.

Manual snapshot or swiftinterface pipelines on main or release/* should now execute only their dedicated workflows (e.g. generate_revenuecatui_snapshots), avoiding a second pass through release-or-main that 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.

Prevent duplicate snapshot PRs when generate_revenuecatui_snapshots,
generate_snapshots, or generate_swiftinterface is set on main.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ajpallares ajpallares marked this pull request as ready for review June 8, 2026 08:11
@ajpallares ajpallares requested a review from a team as a code owner June 8, 2026 08:11
@ajpallares ajpallares enabled auto-merge (squash) June 8, 2026 08:12
@ajpallares ajpallares merged commit 01a50ed into main Jun 8, 2026
19 of 21 checks passed
@ajpallares ajpallares deleted the pallares/skip-release-or-main-for-snapshot-workflows branch June 8, 2026 08:32
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