From e340cce92e9744b24905a04fce0985653317b462 Mon Sep 17 00:00:00 2001 From: tdruez Date: Thu, 8 Feb 2024 15:03:56 +0100 Subject: [PATCH] Improve input-urls syntax #4 Signed-off-by: tdruez --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 9e023ef..044f3c4 100644 --- a/action.yml +++ b/action.yml @@ -34,11 +34,13 @@ runs: - name: Generate `--input-url` CLI arguments shell: bash run: | - IFS=$' ' read -d '' -ra INPUT_URLS <<< "${{ toJson(inputs.input-urls) }}" + IFS=$' \n' + read -ra URLS <<< "${{ toJson(inputs.input-urls) }}" INPUT_URL_CLI_ARGS="" - for url in "${INPUT_URLS[@]}"; do + for url in "${URLS[@]}"; do INPUT_URL_CLI_ARGS+="--input-url $url " done + echo "INPUT_URL_ARGS=${INPUT_URL_CLI_ARGS}" >> $GITHUB_ENV - name: Set up environment shell: bash