Skip to content

Commit 1a3f552

Browse files
committed
ci: fix workflow_dispatch
Signed-off-by: Niccolò Fei <[email protected]>
1 parent e25f1bc commit 1a3f552

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/bake.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ jobs:
4848
env:
4949
# JSON array containing the extensions that have been changed
5050
EXTENSIONS_CHANGED: ${{ steps.filter.outputs.changes }}
51+
# Input Extension name
52+
INPUT_EXTENSION_NAME: ${{ github.event.inputs.extension_name }}
5153
run: |
52-
echo "{\"name\": $EXTENSIONS_CHANGED}" > matrix.json
53-
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then
54-
EXTENSIONS_CHANGED="[${{ github.event.inputs.extension_name }}]"
54+
if [[ "${{ github.event_name }}" == 'workflow_dispatch' ]]; then
55+
EXTENSIONS_CHANGED="[\"$INPUT_EXTENSION_NAME\"]"
5556
fi
57+
echo "{\"name\": $EXTENSIONS_CHANGED}" > matrix.json
5658
echo "matrix=$(cat matrix.json)" >> "$GITHUB_OUTPUT"
5759
5860
Bake:

0 commit comments

Comments
 (0)