-
Notifications
You must be signed in to change notification settings - Fork 187
45 lines (39 loc) · 1.25 KB
/
ci-release.yml
File metadata and controls
45 lines (39 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 }}