From 1e79776b6f34e8f9022d11f65d40033227f61947 Mon Sep 17 00:00:00 2001 From: eliyabar <13337543+eliyabar@users.noreply.github.com> Date: Tue, 18 Jul 2023 19:33:38 +0300 Subject: [PATCH] Update action.yml --- action.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index b5d8cd7..f88aecc 100644 --- a/action.yml +++ b/action.yml @@ -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 }}