Skip to content

Commit

Permalink
chore: update file inputs to accept arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
adthrasher committed Feb 3, 2025
1 parent 8116fb5 commit 265d095
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,14 @@ elif [ $INPUT_ACTION = "validate-inputs" ]; then

EXITCODE=0

echo "sprocket validate-inputs --inputs $INPUT_INPUTS_FILE $INPUT_WDL_FILE"
sprocket validate-inputs --inputs $INPUT_INPUTS_FILE $INPUT_WDL_FILE || EXITCODE=$(($? || EXITCODE))
IFS=', ' read -r -a input_files <<< "$INPUT_INPUTS_FILE"
IFS=', ' read -r -a wdl_files <<< "$INPUT_WDL_FILE"

for index in "${!input_files[@]}"
do
echo "sprocket validate-inputs --inputs ${input_files[index]} ${wdl_files[index]}"
sprocket validate-inputs --inputs ${input_files[index]} ${wdl_files[index]} || EXITCODE=$(($? || EXITCODE))
done

echo "status=$EXITCODE" >> $GITHUB_OUTPUT
exit $EXITCODE
Expand Down

0 comments on commit 265d095

Please sign in to comment.