test(autofix): Fix broken rca test from revert (#123249) #64117
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
| name: bump sentry in getsentry | |
| # Serializes the execution of this workflow. | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| on: | |
| push: | |
| branches: | |
| - master | |
| defaults: | |
| run: | |
| # the default default is: | |
| # bash --noprofile --norc -eo pipefail {0} | |
| shell: bash --noprofile --norc -eo pipefail -ux {0} | |
| jobs: | |
| bump-sentry: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: getsentry token | |
| id: getsentry | |
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | |
| with: | |
| client-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} | |
| private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| repositories: | | |
| sentry | |
| getsentry | |
| - name: checkout | |
| uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
| with: | |
| # For getsentry/bin/bump-sentry, sentry needs to be at ../sentry relative to getsentry. | |
| path: sentry | |
| - name: checkout getsentry | |
| uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
| with: | |
| repository: 'getsentry/getsentry' | |
| path: getsentry | |
| token: ${{ steps.getsentry.outputs.token }} | |
| - name: bump-sentry ${{ github.sha }} | |
| run: | | |
| cd getsentry | |
| python -S -m bin.bump_sentry ${{ github.sha }} | |
| # If getsentry is pushed to by any other means while we were here, | |
| # we won't be able to push. | |
| for i in 1 2 3 4 5; do | |
| git push origin master && exit 0 | |
| # There's a little bit of network delay here that suffices | |
| # as a small sleep. | |
| git \ | |
| -c user.name=getsentry-bot \ | |
| -c user.email=bot@sentry.io \ | |
| pull --rebase origin master | |
| done | |
| # 5th and final attempt. | |
| git push origin master |