Skip to content

Release

Release #277

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version_v1:
required: true
type: string
description: "Version number for v1 docs, in #.#.# format"
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@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Attempt release
shell: bash
run: |
git config user.name "jaegertracingbot"
git config user.email "[email protected]"
# git config credential.helper "store --file=.git/credentials"
# echo "https://${{ secrets.JAEGERTRACINGBOT_GITHUB_TOKEN }}" > .git/credentials
export DRY_RUN=${{ inputs.dry_run }}
./scripts/release.sh ${{ inputs.version_v1 }} ${{ inputs.version_v2 }}
- name: GH CLI create PR
run: |
export TAG="${{ inputs.version_v2 }}/${{ inputs.version_v1 }}"
git checkout -b gen-release-${TAG} # branch is need for GH CLI
git push origin gen-release-${TAG} # branch has to be on remote before PR is opened
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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}