Skip to content

Commit 6e32d95

Browse files
committed
Extract name first
1 parent a4dc49f commit 6e32d95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/process_metadata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ jobs:
7676
run: |
7777
inputs=$(echo '${{ steps.extract-metadata.outputs.metadata }}' | jq -c '.[] | select(.type | contains("workflow_dispatch"))')
7878
if [ -n "$inputs" ]; then
79-
inputs=$(echo $inputs | jq -c 'del(.type, .name, .author, .id, .url) | map_values(tostring)')
8079
name=$(echo $inputs | jq -r '.name')
80+
inputs=$(echo $inputs | jq -c 'del(.type, .name, .author, .id, .url) | map_values(tostring)')
8181
echo "inputs=$inputs" >> $GITHUB_OUTPUT
8282
echo "workflow=$name" >> $GITHUB_OUTPUT
8383
echo "dispatch=true" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)