Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/bump-dependents.yml
Original file line number Diff line number Diff line change
@@ -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},
});
Loading