File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 21
21
pull-requests : write
22
22
name : Update overcloud host image tags
23
23
steps :
24
+ - name : Validate inputs
25
+ run : |
26
+ if [[ ${{ inputs.rocky9_tag }} == '' && ${{ inputs.ubuntu_noble_tag }} == '' ]]; then
27
+ echo "At least one tag must be provided."
28
+ exit 1
29
+ fi
30
+
24
31
- name : Checkout
25
32
uses : actions/checkout@v4
26
33
with :
@@ -29,12 +36,12 @@ jobs:
29
36
30
37
- name : Update Rocky 9 overcloud host image tag
31
38
run : |
32
- sed -i "/stackhpc_rocky_9_overcloud_host_image_version/s/.*/stackhpc_rocky_9_overcloud_host_image_version: ${{ inputs.rocky9_tag }}/" etc/kayobe/pulp-host-image-versions.yml
39
+ sed -i "/stackhpc_rocky_9_overcloud_host_image_version/s/.*/stackhpc_rocky_9_overcloud_host_image_version: ${{ inputs.rocky9_tag }}/" ${{ github.workspace }}/src/kayobe-config/ etc/kayobe/pulp-host-image-versions.yml
33
40
if : " ${{ github.event.inputs.rocky9_tag != '' }}"
34
41
35
42
- name : Update Ubuntu Noble overcloud host image tag
36
43
run : |
37
- sed -i "/stackhpc_ubuntu_noble_overcloud_host_image_version/s/.*/stackhpc_ubuntu_noble_overcloud_host_image_version: ${{ inputs.ubuntu_noble_tag }}/" etc/kayobe/pulp-host-image-versions.yml
44
+ sed -i "/stackhpc_ubuntu_noble_overcloud_host_image_version/s/.*/stackhpc_ubuntu_noble_overcloud_host_image_version: ${{ inputs.ubuntu_noble_tag }}/" ${{ github.workspace }}/src/kayobe-config/ etc/kayobe/pulp-host-image-versions.yml
38
45
if : " ${{ github.event.inputs.ubuntu_noble_tag != '' }}"
39
46
40
47
- name : Propose changes via PR if required
You can’t perform that action at this time.
0 commit comments