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 2121 pull-requests : write
2222 name : Update overcloud host image tags
2323 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+
2431 - name : Checkout
2532 uses : actions/checkout@v4
2633 with :
@@ -29,12 +36,12 @@ jobs:
2936
3037 - name : Update Rocky 9 overcloud host image tag
3138 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
3340 if : " ${{ github.event.inputs.rocky9_tag != '' }}"
3441
3542 - name : Update Ubuntu Noble overcloud host image tag
3643 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
3845 if : " ${{ github.event.inputs.ubuntu_noble_tag != '' }}"
3946
4047 - name : Propose changes via PR if required
You can’t perform that action at this time.
0 commit comments