Skip to content

Commit

Permalink
Fix gh_create_issue input formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Weiße <[email protected]>
  • Loading branch information
daniel-weisse committed Nov 27, 2023
1 parent e93f03c commit 870a014
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/gh_create_issue/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ inputs:
description: "The template to use for the issue."
required: false
fields:
description: "A JSON object containing the fields to use for the issue."
description: "A YAML or JSON object containing the fields to use for the issue."
required: false

outputs:
Expand All @@ -60,5 +60,9 @@ runs:
cat << EOF | tee inputs.json
${{ toJSON(inputs) }}
EOF
yq -oj -iP ". += { \"fields\": $(echo "${{ inputs.fields }}" | yq -oj -P '.' -) }" inputs.json
cat inputs.json
out=$(./.github/actions/gh_create_issue/create_issue.sh inputs.json)
echo "issue-url=${out}" | tee -a "$GITHUB_OUTPUT"

0 comments on commit 870a014

Please sign in to comment.