Skip to content

Commit a4dc49f

Browse files
committed
Delete metadata keys when extracting workflow inputs
1 parent 650f25e commit a4dc49f

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,7 +76,7 @@ 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 'map_values(tostring)')
79+
inputs=$(echo $inputs | jq -c 'del(.type, .name, .author, .id, .url) | map_values(tostring)')
8080
name=$(echo $inputs | jq -r '.name')
8181
echo "inputs=$inputs" >> $GITHUB_OUTPUT
8282
echo "workflow=$name" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)