appleboy / scp-action

GitHub Action that copy files and artifacts via SSH.
https://github.com/marketplace/actions/scp-command-to-transfer-files
MIT License
1.14k stars 134 forks source link

drone-scp error: Process exited with status 1 #99

Closed hafidz98 closed 1 year ago

hafidz98 commented 1 year ago

I have error like these, how should i do? image image

my ci.yaml image

I try manually using ms powershell and its success image

any suggestion? thanks

appleboy commented 1 year ago

Please try the following version

  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: copy file via ssh password
-     uses: appleboy/scp-action@master
+     uses: appleboy/scp-action@7af00892de6f8397c5c3393cfb3b32ae7f91b94b
      with:
        host: ${{ secrets.HOST }}
        username: ${{ secrets.USERNAME }}
        password: ${{ secrets.PASSWORD }}
        port: ${{ secrets.PORT }}
        source: "tests/a.txt,tests/b.txt"
        target: "test"
JohanDavidsson commented 1 year ago

Please try the following version

  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: copy file via ssh password
-     uses: appleboy/scp-action@master
+     uses: appleboy/scp-action@7af00892de6f8397c5c3393cfb3b32ae7f91b94b
      with:
        host: ${{ secrets.HOST }}
        username: ${{ secrets.USERNAME }}
        password: ${{ secrets.PASSWORD }}
        port: ${{ secrets.PORT }}
        source: "tests/a.txt,tests/b.txt"
        target: "test"

Works for me, thanks!

appleboy commented 1 year ago

@JohanDavidsson You also can try the stable version appleboy/scp-action@v0.1.4

sravankumarkeesara commented 1 year ago

@appleboy @JohanDavidsson @hafidz98 @dbingham @magikMaker I am facing a similar kind of error, but the process is creating ".tar.gz" files instead of just ".tar". This is resulting in failure on our side as our unix system does not support it. Have raised an issue on the same, can you take a look.

https://github.com/appleboy/scp-action/issues/119