From ec47354430ff7fc0a68a8a0d577afd46c473e37b Mon Sep 17 00:00:00 2001 From: "Bo-Yi.Wu" Date: Sun, 9 Apr 2023 18:08:07 +0800 Subject: [PATCH] update Signed-off-by: Bo-Yi.Wu --- README.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a5a884c..9692c1d 100644 --- a/README.md +++ b/README.md @@ -266,21 +266,16 @@ Only copy files that are newer than the corresponding destination files: uses: tj-actions/changed-files@v35 with: since_last_remote_commit: true - - - name: List all changed files - run: | - for file in ${{ steps.changed-files.outputs.all_changed_files }}; do - echo "$file was changed" - done + separator: "," - name: copy file to server - uses: ./ + uses: appleboy/scp-action@master with: host: ${{ secrets.HOST }} username: ${{ secrets.USERNAME }} key: ${{ secrets.KEY }} port: ${{ secrets.PORT }} - source: ${{ join(steps.changed-files.outputs.all_changed_files, ',') }} + source: ${{ steps.changed-files.outputs.all_changed_files }} target: test ```