|
6 | 6 | rancher_version: |
7 | 7 | description: 'Rancher version (e.g., v2.11.0)' |
8 | 8 | type: string |
9 | | - cluster_api_operator_version: |
10 | | - description: 'Cluster API Operator version (e.g., v0.18.1)' |
11 | | - type: string |
12 | 9 | cluster_api_version: |
13 | 10 | description: 'Cluster API version (e.g., v1.9.5)' |
14 | 11 | type: string |
|
64 | 61 | first_rule=false |
65 | 62 | fi |
66 | 63 | |
67 | | - if [[ -n "${{ inputs.cluster_api_operator_version }}" ]]; then |
68 | | - if [[ "$first_rule" == "false" ]]; then echo "," >> dynamic-config.json; fi |
69 | | - cat >> dynamic-config.json << 'EOF' |
70 | | - { |
71 | | - "name": "Update Cluster API Operator version in prerequisites table", |
72 | | - "pattern": "\\| Cluster API Operator\\s*\\r?\\n\\| `v[0-9]+\\.[0-9]+\\.[0-9]+`", |
73 | | - "replacement": "| Cluster API Operator\n| `%s`", |
74 | | - "version": "${{ inputs.cluster_api_operator_version }}" |
75 | | - } |
76 | | - EOF |
77 | | - first_rule=false |
78 | | - fi |
79 | | - |
80 | 64 | if [[ -n "${{ inputs.cluster_api_version }}" ]]; then |
81 | 65 | if [[ "$first_rule" == "false" ]]; then echo "," >> dynamic-config.json; fi |
82 | 66 | cat >> dynamic-config.json << 'EOF' |
@@ -177,7 +161,6 @@ jobs: |
177 | 161 | # Create a descriptive commit message |
178 | 162 | commit_msg="Update component versions in docs/next" |
179 | 163 | if [[ -n "${{ inputs.rancher_version }}" ]]; then commit_msg+="\n- Rancher: ${{ inputs.rancher_version }}"; fi |
180 | | - if [[ -n "${{ inputs.cluster_api_operator_version }}" ]]; then commit_msg+="\n- Cluster API Operator: ${{ inputs.cluster_api_operator_version }}"; fi |
181 | 164 | if [[ -n "${{ inputs.cluster_api_version }}" ]]; then commit_msg+="\n- Cluster API: ${{ inputs.cluster_api_version }}"; fi |
182 | 165 | if [[ -n "${{ inputs.cluster_api_provider_rke2_version }}" ]]; then commit_msg+="\n- Cluster API Provider RKE2: ${{ inputs.cluster_api_provider_rke2_version }}"; fi |
183 | 166 | if [[ -n "${{ inputs.cert_manager_version }}" ]]; then commit_msg+="\n- Cert-manager: ${{ inputs.cert_manager_version }}"; fi |
|
0 commit comments