Skip to content

Commit e84bb74

Browse files
committed
CI: Fix loss of number type when calling reusable workflow
The workflow_dispatch break_duration input has a type of 'number', but this somehow gets lost when calling the reusable workflow. We see the following error: The template is not valid. .github/workflows/stackhpc-multinode.yml (Line: 64, Col: 23): Unexpected value '60' This issue is described in https://github.com/orgs/community/discussions/67182. We use the fromJSON workaround in the thread.
1 parent 93d1b47 commit e84bb74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/stackhpc-multinode.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ jobs:
6161
neutron_plugin: ${{ inputs.neutron_plugin }}
6262
upgrade: ${{ inputs.upgrade }}
6363
break_on: ${{ inputs.break_on }}
64-
break_duration: ${{ inputs.break_duration }}
64+
# Workaround loss of number type using fromJSON: https://github.com/orgs/community/discussions/67182
65+
break_duration: ${{ fromJSON(inputs.break_duration) }}
6566
ssh_key: ${{ inputs.ssh_key }}
6667
stackhpc_kayobe_config_version: ${{ github.ref_name }}
6768
# NOTE(upgrade): Reference the PREVIOUS release here.

0 commit comments

Comments
 (0)