Skip to content

Commit 650f25e

Browse files
committed
Map values to strings
1 parent b0efe21 commit 650f25e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/process_metadata.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ jobs:
7575
id: check-workflow-dispatch
7676
run: |
7777
inputs=$(echo '${{ steps.extract-metadata.outputs.metadata }}' | jq -c '.[] | select(.type | contains("workflow_dispatch"))')
78-
name=$(echo $inputs | jq -r '.name')
7978
if [ -n "$inputs" ]; then
79+
inputs=$(echo $inputs | jq -c 'map_values(tostring)')
80+
name=$(echo $inputs | jq -r '.name')
8081
echo "inputs=$inputs" >> $GITHUB_OUTPUT
8182
echo "workflow=$name" >> $GITHUB_OUTPUT
8283
echo "dispatch=true" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)