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

update README

This commit is contained in:
shimataro 2023-10-09 19:05:08 +09:00
parent 49901f9ff6
commit ebfbb9befb
No known key found for this signature in database
GPG key ID: BE92C05736911A9D

View file

@ -39,6 +39,7 @@ steps:
known_hosts: ${{ secrets.KNOWN_HOSTS }}
config: ${{ secrets.CONFIG }} # ssh_config; optional
if_key_exists: fail # replace / ignore / fail; optional (defaults to fail)
keep_ssh_dir: true # true / false; optional (defaults to false)
- name: rsync over SSH
run: rsync -r ./foo/ user@remote:bar/
```
@ -104,6 +105,10 @@ Use `if_key_exists` parameter.
* `ignore`: does nothing
* `fail`: fails (default)
### I don't want to remove `.ssh` directory on exit.
Set `keep_ssh_dir` to true.
### How do I use encrypted SSH key?
This action doesn't support encrypted key directly.