Skip to content

Commit

Permalink
Increase verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapona committed Feb 23, 2024
1 parent 25b661a commit 6e66acd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ repository=${INPUT_REPOSITORY?Please specify a repository}
# "files" array:
if [ -n "$INPUT_FILES" ]; then
# Primitive whitespace splitting
echo Handling input files: "$INPUT_FILES"
INPUT_FILES=$(echo "$INPUT_FILES" | tr '\n' ' ' | tr '\t' ' ' | tr -s ' ')
IFS=" " read -r -a input_file_patterns <<<"$INPUT_FILES"
echo "${input_file_patterns[@]}"
Expand All @@ -26,7 +27,8 @@ if [ -n "$INPUT_FILES" ]; then
files=()
for input_file_pattern in "${input_file_patterns[@]}"; do
readarray -d '' _files < <(find $(dirname "${input_file_pattern}") -type f -name "$(basename "${input_file_pattern}")" -print0)
echo "${_files[@]}"
echo Found "${_files[@]}"
echo $(ls -l "${_files[@]}")
files+=("${_files[@]}")
done
else
Expand All @@ -46,5 +48,6 @@ fi

# Upload each file separately to support multiple file types
for file in "${files[@]}"; do
package_cloud push "${user}/$repository" "${file}"
echo Pushing "${file}" to "${user}/${repository}"
package_cloud push "${user}/$repository" "${file}" --verbose
done

0 comments on commit 6e66acd

Please sign in to comment.