Skip to content

ci(api): Dispatch bump-sentry-api.yml in each @sentry/api consumer - #131318

Open
sentry-junior[bot] wants to merge 2 commits into
masterfrom
ci/api-dispatch-consumers
Open

sentry-junior[bot] wants to merge 2 commits into
masterfrom
ci/api-dispatch-consumers

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Once every consumer has a thin bump-sentry-api.yml that calls #131317's reusable workflow, the release dispatch no longer needs a per-repo workflow file or ref. This reduces the dispatch matrix to repo: [sentry-docs, toolkit]. Each entry dispatches bump-sentry-api.yml on the repo's default branch, and the job still waits for npm first. It follows up on #131244.

  • Rename: bump-sentry-docs.yml becomes dispatch-api-consumers.yml, since it no longer bumps only sentry-docs. The .craft.yml comment that pointed at it is updated.
  • Tokens: entries use the release bot (SENTRY_RELEASE_BOT_*) unless they name another app. sentry-docs keeps SENTRY_API_SCHEMA_UPDATER_* through a matrix include, because nothing in sentry-docs uses the release bot. Whether its installation reaches sentry-docs with actions: write is unverified. Moving sentry-docs to the release bot later means deleting that include entry.
  • Adding a consumer means adding its repo name, once it has a bump-sentry-api.yml.

Merge order: this PR goes last.

  1. ci(api): Add a reusable workflow that bumps @sentry/api in a consumer #131317, the reusable workflow.
  2. The consumer PRs, in either order: ci(api): Bump @sentry/api through getsentry/sentry's reusable workflow sentry-docs#20835 and ci: Bump @sentry/api through getsentry/sentry's reusable workflow toolkit#2299.
  3. This PR.
  4. A follow-up in sentry-docs that deletes its temporary bump-api-schema-sha.yml.

No dispatch ever targets a missing workflow during the rollout. Toolkit already has bump-sentry-api.yml. getsentry/sentry-docs#20835 adds bump-sentry-api.yml and keeps bump-api-schema-sha.yml as a dispatch-only alias, so both the old name (current master) and the new name (this PR) exist until this merges.

via @BYK.

--

View Session [Sentry]

Every consumer now runs the same bump-sentry-api.yml, a thin caller of
bump-sentry-api-consumer.yml, so the dispatch matrix only lists repo names
and dispatches on each repository's default branch. sentry-docs keeps the
app it already uses; other entries use the release bot. The workflow is
renamed to dispatch-api-consumers.yml since it no longer bumps only
sentry-docs.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit fb4a2f9. Configure here.

Without --ref, gh workflow run reads the target repository's default
branch first. Ask for that permission explicitly next to actions: write.

This branch has not been deployed

No deployments
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.

1 participant