@@ -29,12 +29,12 @@ jobs:
2929
3030 - name : Update Rocky 9 overcloud host image tag
3131 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
32+ 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
3333 if : " ${{ github.event.inputs.rocky9_tag != '' }}"
3434
3535 - name : Update Ubuntu Noble overcloud host image tag
3636 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
37+ 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
3838 if : " ${{ github.event.inputs.ubuntu_noble_tag != '' }}"
3939
4040 - name : Propose changes via PR if required
@@ -44,14 +44,14 @@ jobs:
4444 commit-message : >-
4545 Bump overcloud host image tags
4646 author : stackhpc-ci <22933334+stackhpc-ci@users.noreply.github.com>
47- branch : bump-overcloud-host-images/${{ inputs.rocky9_tag }}/${{ inputs.ubuntu_noble_tag }}
47+ branch : bump-overcloud-host-images$(if [[ "${{ inputs.rocky9_tag }}" != '' ]]; then echo " /${{ inputs.rocky9_tag }}"; fi)$(if [[ "${{ inputs.ubuntu_noble_tag }}" != '' ]]; then echo " /${{ inputs.ubuntu_noble_tag }}"; fi)
4848 delete-branch : true
4949 title : >-
5050 DNM test PR: Bump overcloud host image tags
5151 body : >
5252 This PR was created automatically to update the overcloud host image
53- tags to:
54- Rocky 9: ${{ inputs.rocky9_tag }}
55- Ubuntu Noble: ${{ inputs.ubuntu_noble_tag }}
53+ tags.
54+ $(if [[ "${{ inputs.rocky9_tag }}" != '' ]]; then echo " Rocky 9: ${{ inputs.rocky9_tag }}"; fi)
55+ $(if [[ "${{ inputs.ubuntu_noble_tag }}" != '' ]]; then echo " Ubuntu Noble: ${{ inputs.ubuntu_noble_tag }}"; fi)
5656 labels : |
5757 automated
0 commit comments