Skip to content

Commit

Permalink
Improve input-urls syntax #4
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Feb 8, 2024
1 parent e7acee5 commit e340cce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e340cce

Please sign in to comment.