Skip to content

Commit

Permalink
Add an example using the d2d pipeline #4
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Jan 31, 2024
1 parent 3ef0c77 commit a0b5c14
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,20 @@ runs:
- name: Generate `--input-url` CLI arguments
shell: bash
run: |
echo ${{ inputs.input-urls }}
URLS=${{ inputs.input-urls }}
IFS=$'\n' read -r -d '' -a URLS <<< "${{ inputs.input-urls }}"
echo $URLS
URLS="${URLS:-"[]"}"
echo $URLS
URL_ARRAY=($(echo "$URLS" | jq -r '.[]'))
echo $URL_ARRAY
INPUT_URL_CLI_ARGS=""
for URL in "${URL_ARRAY[@]}"; do
INPUT_URL_CLI_ARGS+="--input-url $URL "
done
echo ${INPUT_URL_CLI_ARGS}
echo "INPUT_URL_CLI_ARGS=${INPUT_URL_CLI_ARGS}" >> $GITHUB_ENV
# URLS=${{ inputs.input-urls }}
# echo $URLS
# URLS="${URLS:-"[]"}"
# echo $URLS
# URL_ARRAY=($(echo "$URLS" | jq -r '.[]'))
# echo $URL_ARRAY
# INPUT_URL_CLI_ARGS=""
# for URL in "${URL_ARRAY[@]}"; do
# INPUT_URL_CLI_ARGS+="--input-url $URL "
# done
# echo ${INPUT_URL_CLI_ARGS}
# echo "INPUT_URL_CLI_ARGS=${INPUT_URL_CLI_ARGS}" >> $GITHUB_ENV

- name: Create project
shell: bash
Expand Down

0 comments on commit a0b5c14

Please sign in to comment.