Skip to content

Commit

Permalink
Machine ID: fix example GHA workflow in web UI flow (#52310)
Browse files Browse the repository at this point in the history
We need to emit an empty string when the expression evaluates to
false, otherwise we end up with invalid YAML.
  • Loading branch information
zmb3 authored Feb 21, 2025
1 parent 86be34e commit 74a66d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 74a66d8

Please sign in to comment.