From 74a66d8b3b085788b2ce509ec6a64739e2f39433 Mon Sep 17 00:00:00 2001 From: Zac Bergquist Date: Fri, 21 Feb 2025 12:51:05 -0700 Subject: [PATCH] Machine ID: fix example GHA workflow in web UI flow (#52310) We need to emit an empty string when the expression evaluates to false, otherwise we end up with invalid YAML. --- .../teleport/src/Bots/Add/GitHubActions/AddBotToWorkflow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/packages/teleport/src/Bots/Add/GitHubActions/AddBotToWorkflow.tsx b/web/packages/teleport/src/Bots/Add/GitHubActions/AddBotToWorkflow.tsx index 9529970d4a679..66f67bb5206d8 100644 --- a/web/packages/teleport/src/Bots/Add/GitHubActions/AddBotToWorkflow.tsx +++ b/web/packages/teleport/src/Bots/Add/GitHubActions/AddBotToWorkflow.tsx @@ -96,7 +96,7 @@ jobs: # able to authenticate with the cluster. id-token: write contents: read - ${includeNameComment && '# if you added a workflow name in the previous step, make sure you use the same value here'} + ${includeNameComment ? '# if you added a workflow name in the previous step, make sure you use the same value here' : ''} name: ${botName}-example runs-on: ubuntu-latest steps: