From 870a014e44798fa65cc8f2af2e8ed3bb7f3ceae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= Date: Mon, 27 Nov 2023 09:53:48 +0100 Subject: [PATCH] Fix gh_create_issue input formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- .github/actions/gh_create_issue/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/gh_create_issue/action.yml b/.github/actions/gh_create_issue/action.yml index 4c960a2ba0..d02725d276 100644 --- a/.github/actions/gh_create_issue/action.yml +++ b/.github/actions/gh_create_issue/action.yml @@ -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: @@ -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"