Skip to content

Commit f8c8f32

Browse files
committed
WIP
1 parent 3f94dd4 commit f8c8f32

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/amphora-image-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: Update overcloud host image tags
44

55
on:
6-
workflow_call:
6+
workflow_dispatch:
77
inputs:
88
rocky9_tag:
99
description: Overcloud host image tag for Rocky 9
@@ -30,12 +30,12 @@ jobs:
3030
- name: Update Rocky 9 overcloud host image tag
3131
run: |
3232
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 != '' }}"
3434

3535
- name: Update Ubuntu Noble overcloud host image tag
3636
run: |
3737
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 != '' }}"
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 <[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 }}
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
5353
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 }}
5656
labels: |
5757
automated

0 commit comments

Comments
 (0)