Release: Create RC #2
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: Create RC" | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| issue: | |
| description: 'The Release Tracking Issue Number (e.g., 142)' | |
| required: true | |
| type: string | |
| permissions: | |
| contents: write | |
| issues: write | |
| jobs: | |
| tag_rc: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| tag_name: ${{ steps.tagger.outputs.tag_name }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Bazel | |
| uses: bazel-contrib/setup-bazel@0.19.0 | |
| with: | |
| bazelisk-version: 1.20.0 | |
| - name: Configure Git Identity | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| - name: Attempt RC Tagging | |
| id: tagger | |
| run: | | |
| bazel run //tools/private/release -- \ | |
| create-rc --issue ${{ inputs.issue }} --remote origin | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| call_release: | |
| needs: tag_rc | |
| uses: ./.github/workflows/release_publish.yaml | |
| with: | |
| tag_name: ${{ needs.tag_rc.outputs.tag_name }} | |
| secrets: inherit |