diff --git a/.forgejo/workflows/ansibleCD.yml b/.forgejo/workflows/ansibleCD.yml index 89c8c0b..5d879e9 100644 --- a/.forgejo/workflows/ansibleCD.yml +++ b/.forgejo/workflows/ansibleCD.yml @@ -27,6 +27,7 @@ jobs: echo "::set-output name=folders::$folders" - name: Deploy to hosts + shell: bash run: | IFS=' ' read -r -a folder_array <<< "${{ steps.detect-changes.outputs.folders }}" for folder in "${folder_array[@]}"; do @@ -86,6 +87,7 @@ jobs: ;; esac echo "Deploying to $target_host for folder $folder" + echo "target_host=$target_host" >> $GITHUB_ENV echo "folder=$folder" >> $GITHUB_ENV done