Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eliyabar authored Jul 18, 2023
1 parent 5fe540c commit 1e79776
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,20 @@ runs:
id: run_preevy
run: |
# Convert the docker-compose-yaml-paths input to an env var
paths=${{ inputs.docker-compose-yaml-paths }}
file_paths=${{ inputs.docker-compose-yaml-paths }}
echo "Docker file paths ${file_paths}"
# Initialize the joined preevy paths string
joined_paths=""
# Loop through the array and build the joined_paths string
for path in "${paths[@]}"; do
for path in "${file_paths[@]}"; do
if [[ -n $path ]]; then
# Add -f and path to the joined_paths string
joined_paths+="-f $path "
fi
done
echo "Running Preevy with files: ${joined_paths}"
# Run the up command
preevy up ${joined_paths} ${{ inputs.args }}
Expand Down

0 comments on commit 1e79776

Please sign in to comment.