|
6 | 6 | # the minor version number and set the patch number to 0.
|
7 | 7 | inputs:
|
8 | 8 | candidate-beta:
|
9 |
| - type: choice |
10 | 9 | required: true
|
11 |
| - description: Select what kind of version bump this should be |
12 |
| - options: |
13 |
| - - minor |
14 |
| - - patch |
| 10 | + description: Release candidate version (beta, like 0.70.0) |
| 11 | + |
| 12 | + current-beta: |
| 13 | + required: true |
| 14 | + description: Current version (beta, like 0.69.1) |
15 | 15 | jobs:
|
16 | 16 | # Releasing opentelemetry-collector-contrib
|
17 | 17 | prepare-release:
|
18 | 18 | runs-on: ubuntu-24.04
|
19 | 19 | steps:
|
20 | 20 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
21 | 21 | with:
|
22 |
| - fetch-depth: 0 |
23 | 22 | repository: "open-telemetry/opentelemetry-collector"
|
24 | 23 | path: opentelemetry-collector
|
25 | 24 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
26 | 25 | with:
|
27 |
| - fetch-depth: 0 |
28 | 26 | path: opentelemetry-collector-contrib
|
29 | 27 | - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
|
30 | 28 | with:
|
31 | 29 | go-version: "1.23.7"
|
32 | 30 | cache: false
|
33 |
| - |
34 |
| - - name: Get Previous tag |
35 |
| - id: previous-version |
36 |
| - uses: WyriHaximus/github-action-get-previous-tag@04e8485ecb6487243907e330d522ff60f02283ce # v1.4.0 |
37 |
| - with: |
38 |
| - prefix: v |
39 |
| - workingDirectory: opentelemetry-collector-contrib |
40 |
| - |
41 |
| - - name: Get next minor version |
42 |
| - id: semvers |
43 |
| - uses: WyriHaximus/github-action-next-semvers@18aa9ed4152808ab99b88d71f5481e41f8d89930 # v1.2.1 |
44 |
| - with: |
45 |
| - version: ${{ steps.previous-version.outputs.tag }} |
46 |
| - |
47 |
| - - name: Select next version |
48 |
| - id: next-version |
49 |
| - run: | |
50 |
| - if [[ '${{ inputs.candidate-beta }}' == 'minor' ]]; then |
51 |
| - echo "next-version=${{ steps.semvers.outputs.minor }}" >> $GITHUB_OUTPUT |
52 |
| - elif [[ '${{ inputs.candidate-beta }}' == 'patch' ]]; then |
53 |
| - echo "next-version=${{ steps.semvers.outputs.patch }}" >> $GITHUB_OUTPUT |
54 |
| - else |
55 |
| - echo "Error: unsupported semver type" |
56 |
| - exit 1 |
57 |
| - fi |
58 |
| -
|
59 | 31 | - name: Prepare release for contrib
|
60 | 32 | working-directory: opentelemetry-collector-contrib
|
61 | 33 | env:
|
62 | 34 | GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
|
63 | 35 | REPO: open-telemetry/opentelemetry-collector-contrib
|
64 |
| - CANDIDATE_BETA: ${{ steps.next-version.outputs.next-version }} |
65 |
| - CURRENT_BETA: ${{ steps.previous-version.outputs.tag }} |
| 36 | + CANDIDATE_BETA: ${{ inputs.candidate-beta }} |
| 37 | + CURRENT_BETA: ${{ inputs.current-beta }} |
66 | 38 | run: ./.github/workflows/scripts/release-prepare-release.sh
|
0 commit comments