3
3
name : Update overcloud host image tags
4
4
5
5
on :
6
- workflow_call :
6
+ workflow_dispatch :
7
7
inputs :
8
8
rocky9_tag :
9
9
description : Overcloud host image tag for Rocky 9
@@ -30,12 +30,12 @@ jobs:
30
30
- name : Update Rocky 9 overcloud host image tag
31
31
run : |
32
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 : inputs.rocky9_tag is defined
33
+ if : if: "${{ github.event. inputs.rocky9_tag != '' }}"
34
34
35
35
- name : Update Ubuntu Noble overcloud host image tag
36
36
run : |
37
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 : inputs.ubuntu_noble_tag is defined
38
+ if : if: "${{ github.event. inputs.ubuntu_noble_tag != '' }}"
39
39
40
40
- name : Propose changes via PR if required
41
41
uses : peter-evans/create-pull-request@v7
@@ -44,14 +44,14 @@ jobs:
44
44
commit-message : >-
45
45
Bump overcloud host image tags
46
46
author :
stackhpc-ci <[email protected] >
47
- branch : bump-overcloud-host-images${{ '/' + inputs.rocky9_tag if inputs.rocky9_tag is defined else '' }} ${{ '/'' + inputs.ubuntu_noble_tag if inputs.ubuntu_noble_tag is defined else '' }}
47
+ branch : bump-overcloud-host-images/ ${{ inputs.rocky9_tag }}/ ${{ inputs.ubuntu_noble_tag }}
48
48
delete-branch : true
49
49
title : >-
50
50
DNM test PR: Bump overcloud host image tags
51
51
body : >
52
52
This PR was created automatically to update the overcloud host image
53
53
tags to:
54
- "{{ ' Rocky 9: ${{ inputs.rocky9_tag }}' if inputs.rocky9_tag is defined else '' }}"
55
- "{{ ' Ubuntu Noble: ${{ inputs.ubuntu_noble_tag }}' if inputs.ubuntu_noble_tag is defined else '' }}"
54
+ Rocky 9: ${{ inputs.rocky9_tag }}'
55
+ Ubuntu Noble: ${{ inputs.ubuntu_noble_tag }}
56
56
labels : |
57
57
automated
0 commit comments