From 23e9f2c99d58086df3fdf67485921e27a3eb9717 Mon Sep 17 00:00:00 2001 From: Sumu Date: Tue, 26 Sep 2023 20:41:08 -0400 Subject: [PATCH] make testingMode input type 'choice' true/false Signed-off-by: Sumu --- .github/workflows/k8s-upgrade-automation.yml | 6 +++++- src/k8s-automation.ts | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/k8s-upgrade-automation.yml b/.github/workflows/k8s-upgrade-automation.yml index e4cac6cf9b..061bccbe42 100644 --- a/.github/workflows/k8s-upgrade-automation.yml +++ b/.github/workflows/k8s-upgrade-automation.yml @@ -5,9 +5,13 @@ on: workflow_dispatch: inputs: testing_mode: + type: choice description: Testing Mode required: true - default: false + default: "false" + options: + - "true" + - "false" schedule: - cron: 0 18 * * 0 push: diff --git a/src/k8s-automation.ts b/src/k8s-automation.ts index dac7d960cd..3d13d93fa5 100644 --- a/src/k8s-automation.ts +++ b/src/k8s-automation.ts @@ -16,9 +16,14 @@ export class K8sVersionUpgradeAutomation extends Component { workflowDispatch: { inputs: { testingMode: { + type: 'choice', description: 'Testing Mode', required: true, - default: false, + default: 'false', + options: [ + 'true', + 'false', + ], }, }, },