Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When copying files from a Linux runner to a Windows server issues #180

Open
jjangsky opened this issue Jun 12, 2024 · 1 comment
Open

When copying files from a Linux runner to a Windows server issues #180

jjangsky opened this issue Jun 12, 2024 · 1 comment

Comments

@jjangsky
Copy link

Hello, first of all, I would like to express my gratitude for creating such a wonderful custom action.

I am having trouble transferring files from a Linux runner server to a Windows remote server using your scp-action.

After checking the "When copying files from a Linux runner to a Windows server" section at the end of the readme file and executing it the same way, it failed to transfer the files, displaying "remote server os type is unix".

Can you help with this?

- name: Upload WAR file to NCP Windows server
  uses: appleboy/scp-action@master
  with:
    host: ${{ secrets.NCP_SERVER }}
    username: ${{ secrets.NCP_USER }}
    password: ${{ secrets.NCP_PASSWORD }}
    port: 22
    source: target/SCHOOLBOOKS_USER.war
    target: '/c/eco/schoolbooks_tomcats/tomcat9_user_test/webapps/'
    tar_dereference: true
    rm: true
    debug: true
@clint-latch
Copy link

For future travelers, drop the leading /c in the target, i.e.

-    target: '/c/Users/bob'
+    target: '/Users/bob'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants