feat(billing-platform): Add bare-minimum Grant proto for Engagement S… #168
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: release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'proto/**' | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: Version to release (or "auto") | |
| required: false | |
| force: | |
| description: Force a release even when there are release-blockers (optional) | |
| required: false | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| name: 'Release a new version' | |
| if: | | |
| github.event_name == 'workflow_dispatch' || | |
| !startsWith(github.event.head_commit.message, 'release:') | |
| steps: | |
| - name: Get auth token | |
| id: token | |
| uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0 | |
| with: | |
| app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} | |
| private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} | |
| - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 | |
| with: | |
| token: ${{ steps.token.outputs.token }} | |
| fetch-depth: 0 | |
| - name: Prepare release | |
| uses: getsentry/craft@c6e2f04939b6ee67030588afbb5af76b127d8203 # v2 | |
| env: | |
| GITHUB_TOKEN: ${{ steps.token.outputs.token }} | |
| with: | |
| version: ${{ github.event.inputs.version || 'auto' }} | |
| force: ${{ github.event.inputs.force || 'false' }} |