1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

Feature/known_hosts (#25)

* * add "known-hosts" option

* * update CHANGELOG

* * update README

* * update actions.yml

* * update example of known-hosts

* * fix message
This commit is contained in:
shimataro 2019-09-29 13:18:35 +09:00 committed by GitHub
parent b9c6c52737
commit 3d8365bb3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 75 additions and 25 deletions

View file

@ -21,10 +21,11 @@ steps:
private-key: ${{ secrets.SSH_KEY }}
public-key: ${{ secrets.SSH_KEY_PUBLIC }}
name: id_rsa # optional
known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional
- name: Install packages
run: apt install openssh-client rsync
- name: rsync over ssh
run: rsync -e "ssh -o StrictHostKeyChecking=no" ./foo/ user@remote:bar/
run: rsync ./foo/ user@remote:bar/
```
See [Workflow syntax for GitHub Actions](https://help.github.com/en/articles/workflow-syntax-for-github-actions) for details.