目录
目录README.md

SSH and SCP Setup in GITHUB’s Action

Setup ssh agent for both ssh and scp. Script can be run before and after scp operation has been completed

USAGE

- name: Operations
  uses: alinz/ssh-scp-action@master
  env:
    HELLO: cool
    MESSAGE: hello world
  with:
    key: ${{ secrets.SSH_KEY }}
    host: example.com
    port: 22
    user: john
    # runs this on remove server
    ssh_before: |
      rm -rf sample1.dat sample2.dat
      echo $HELLO
      echo $MESSAGE
      ls -lath

    # then uploads these 2 files
    scp: |
      sample1.txt john@example.com:~/sample1.dat
      sample2.txt john@example.com:~/sample2.dat

    # then run these commands
    ssh_after: |
      echo $HELLO
      echo $MESSAGE
      ls -lath
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号