|
1 | 1 | name: "Chart - Release - Candidate" |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - - release-candidate |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + update-branch: |
| 7 | + type: boolean |
| 8 | + default: false |
| 9 | + camunda-version: |
| 10 | + type: choice |
| 11 | + description: Camunda version in form of x.y, alpha, or alpha-8.8. |
| 12 | + options: |
| 13 | + - "8.3" |
| 14 | + - "8.4" |
| 15 | + - "8.5" |
| 16 | + - "8.6" |
| 17 | + - "alpha" |
| 18 | + - "alpha-8.8" |
7 | 19 |
|
8 | 20 | jobs: |
| 21 | + reset: |
| 22 | + name: Reset Branch |
| 23 | + if: inputs.update-branch |
| 24 | + permissions: |
| 25 | + contents: write |
| 26 | + runs-on: ubuntu-latest |
| 27 | + defaults: |
| 28 | + run: |
| 29 | + shell: bash |
| 30 | + steps: |
| 31 | + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 |
| 32 | + with: |
| 33 | + ref: main |
| 34 | + - name: Configure Git |
| 35 | + run: | |
| 36 | + git config user.name "$GITHUB_ACTOR" |
| 37 | + git config user.email "[email protected]" |
| 38 | + - name: Update RC branch from main |
| 39 | + run: | |
| 40 | + git checkout -b release-candidate |
| 41 | + git push --force --set-upstream origin release-candidate |
| 42 | +
|
9 | 43 | release: |
10 | | - name: Release Candidate |
| 44 | + name: Release |
| 45 | + if: inputs.camunda-version |
11 | 46 | uses: ./.github/workflows/chart-release-template.yaml |
12 | 47 | with: |
13 | | - branch: ${{ github.ref_name }} |
| 48 | + branch: release-candidate |
14 | 49 | workflow-ref: chart-release-template.yaml |
15 | 50 | chart-matrix: | |
16 | 51 | [ |
17 | 52 | { |
18 | | - "name": "Helm Chart 8.2", |
19 | | - "directory": "charts/camunda-platform-8.2", |
20 | | - "versionSuffix": "rc-8.2", |
21 | | - "override": false |
22 | | - }, |
23 | | - { |
24 | | - "name": "Helm Chart 8.3", |
25 | | - "directory": "charts/camunda-platform-8.3", |
26 | | - "versionSuffix": "rc-8.3", |
27 | | - "override": false |
28 | | - }, |
29 | | - { |
30 | | - "name": "Helm Chart 8.4", |
31 | | - "directory": "charts/camunda-platform-8.4", |
32 | | - "versionSuffix": "rc-8.4", |
33 | | - "override": false |
34 | | - }, |
35 | | - { |
36 | | - "name": "Helm Chart 8.5", |
37 | | - "directory": "charts/camunda-platform-8.5", |
38 | | - "versionSuffix": "rc-8.5", |
39 | | - "override": false |
40 | | - }, |
41 | | - { |
42 | | - "name": "Helm Chart 8.6", |
43 | | - "directory": "charts/camunda-platform-8.6", |
44 | | - "versionSuffix": "rc-8.6", |
45 | | - "override": false |
46 | | - }, |
47 | | - { |
48 | | - "name": "Helm Chart Alpha", |
49 | | - "directory": "charts/camunda-platform-alpha", |
50 | | - "versionSuffix": "rc-alpha", |
51 | | - "override": false |
| 53 | + "name": "Helm Chart ${{ inputs.camunda-version }}", |
| 54 | + "directory": "charts/camunda-platform-${{ inputs.camunda-version }}", |
| 55 | + "versionSuffix": "rc-${{ inputs.camunda-version }}", |
| 56 | + "override": true |
52 | 57 | } |
53 | 58 | ] |
0 commit comments