@@ -29,13 +29,13 @@ 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
33- if : " ${{ github.event. inputs.rocky9_tag != '' }}"
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
33+ if : " ${{ 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
38- if : " ${{ github.event. inputs.ubuntu_noble_tag != '' }}"
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
38+ if : " ${{ inputs.ubuntu_noble_tag != '' }}"
3939
4040 - name : Propose changes via PR if required
4141 uses : peter-evans/create-pull-request@v7
@@ -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${{ inputs.rocky9_tag != '' ? /${{ inputs.rocky9_tag }} : '' }}${{ inputs.ubuntu_noble_tag != '' ? /${{ inputs.ubuntu_noble_tag }} : '' }}
4848 delete-branch : true
4949 title : >-
5050 DNM test PR: Bump overcloud host image tags
51- body : >
51+ 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+ Rocky 9: ${{ inputs.rocky9_tag != '' ? inputs.rocky9_tag : 'N/A' }}
55+ Ubuntu Noble: ${{ inputs.ubuntu_noble_tag != '' ? inputs.ubuntu_noble_tag : 'N/A' }}
5656 labels : |
5757 automated
0 commit comments