From 7b6183d699f68dbb4bdd9c3dc608a49ceb203db3 Mon Sep 17 00:00:00 2001 From: shimataro Date: Sun, 7 Mar 2021 21:09:28 +0900 Subject: [PATCH] update README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 029f524..ff5a8c8 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ steps: name: id_rsa # optional known_hosts: ${{ secrets.KNOWN_HOSTS }} config: ${{ secrets.CONFIG }} # ssh_config; optional + if_key_exists: fail # replace / ignore / fail; optional (defaults to fail) - name: rsync over ssh run: rsync ./foo/ user@remote:bar/ ``` @@ -88,6 +89,14 @@ Check below: * `Host key verification failed.`: * Set `known_hosts` parameter correctly (use `ssh-keyscan` command). +### I want to replace/ignore if key exists. + +Use `if_key_exists` parameter. + +* `replace`: replaces key +* `ignore`: do nothing +* `fail`: fails (default) + ### How do I use encrypted SSH key? This action doesn't support encrypted key directly.