From fb136595aa86744225350d5d4519e6453d46ab7b Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:33:01 +0000 Subject: [PATCH] ci: Dispatch a sentry bump after each release Each published release dispatches rolling-bump-version.yml in getsentry/sentry, which keeps one bump PR open on the newest release. Pilot for DI-2492. Co-Authored-By: Joshua Li <14209781+joshuarli@users.noreply.github.com> --- .github/workflows/bump-dependents.yml | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/bump-dependents.yml diff --git a/.github/workflows/bump-dependents.yml b/.github/workflows/bump-dependents.yml new file mode 100644 index 00000000..d79d8ae6 --- /dev/null +++ b/.github/workflows/bump-dependents.yml @@ -0,0 +1,41 @@ +name: bump dependents + +# Each published release asks getsentry/sentry to bump sentry-protos. Its +# rolling-bump-version.yml keeps one bump PR open on the newest release, and +# waits for the release to be installable from PyPI. +on: + release: + types: + - published + +permissions: {} + +jobs: + dispatch: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Get auth token + id: token + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + with: + client-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} + private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} + owner: getsentry + repositories: sentry + permission-actions: write + + - name: Dispatch the sentry bump + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + VERSION: ${{ github.event.release.tag_name }} + with: + github-token: ${{ steps.token.outputs.token }} + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: 'getsentry', + repo: 'sentry', + workflow_id: 'rolling-bump-version.yml', + ref: 'master', + inputs: {package: 'sentry-protos', version: process.env.VERSION}, + });