Release #304
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: | |
| workflow_dispatch: | |
| inputs: | |
| version_v2: | |
| required: true | |
| type: string | |
| description: "Version number for v2 docs, in #.#.# format" | |
| dry_run: | |
| required: true | |
| type: boolean | |
| description: Do a dry run. | |
| jobs: | |
| prepare-release: | |
| if: ${{ github.repository == 'jaegertracing/documentation' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| # Use the bot's PAT instead of the default GITHUB_TOKEN | |
| token: ${{ secrets.JAEGERTRACINGBOT_PAT }} | |
| ref: main | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.14 | |
| - name: Attempt release | |
| shell: bash | |
| run: | | |
| git config user.name "jaegertracingbot" | |
| git config user.email "jaegertracingbot+jaeger-tracing@googlegroups.com" | |
| export DRY_RUN=${{ inputs.dry_run }} | |
| ./scripts/release.sh ${{ inputs.version_v2 }} | |
| - name: GH CLI create PR | |
| run: | | |
| export TAG="${{ inputs.version_v2 }}" | |
| gh pr create --base main --title "Release ${TAG}" --body "Release ${TAG}. This PR is created from CI and is part of the release process." | |
| env: | |
| GH_TOKEN: ${{ secrets.JAEGERTRACINGBOT_PAT }} |