From 46527b759cb1598d414354cfa9d70266a3d4bb09 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 17 Apr 2024 11:54:06 -0400 Subject: [PATCH] tweak workflow step again --- .github/workflows/module-plugin-test.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/module-plugin-test.yml b/.github/workflows/module-plugin-test.yml index a20cba3..7bbc432 100644 --- a/.github/workflows/module-plugin-test.yml +++ b/.github/workflows/module-plugin-test.yml @@ -199,14 +199,15 @@ jobs: - name: Sync New Module build files to node_modules dir for inclusion in plugin build if: ${{ inputs.sync-npm-package }} run: | - echo 'Test file to see if rsync worked.' > vendor/${{ inputs.module-repo }}/build/test.txt - echo "SOURCE vendor/${{ inputs.module-repo }}/build" - ls -l vendor/${{ inputs.module-repo }}/build - echo "DESTINATION node_modules/@${{ inputs.module-repo }}/build" - ls -l node_modules/@${{ inputs.module-repo }}/build - echo "Updating DESTINATION from SOURCE?" - rsync -r "vendor/${{ inputs.module-repo }}/build" "node_modules/@${{ inputs.module-repo }}/build" - echo "UPDATED DESTINATION node_modules/@${{ inputs.module-repo }}/build" + src = "vendor/${{ inputs.module-repo }}/build" + dest = "node_modules/@${{ inputs.module-repo }}/build" + echo 'Test file to see if rsync worked.' > "$src/test.txt" + echo "SOURCE $src" + ls -l $src + echo "DESTINATION $dest" + ls -l $dest + rsync --recursive --progress "$src" "$dest" + echo "UPDATED DESTINATION:" ls -l node_modules/@${{ inputs.module-repo }}/build - name: Build Plugin run: npm run build