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

* add "if_key_exists" * add test * fix flag * fix SSH connection commands * add test for if_key_exists=ignore * add test for if_key_exists=fail * add tests to Windows / macOS * update CHANGELOG * update badges * update README * fix README * update README * add tests for Docker containers
30 lines
701 B
YAML
30 lines
701 B
YAML
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
|
name: "Install SSH Key"
|
|
description: "Install SSH key in ~/.ssh"
|
|
author: "shimataro"
|
|
branding:
|
|
icon: "terminal"
|
|
color: "gray-dark"
|
|
inputs:
|
|
key:
|
|
description: "SSH private key"
|
|
required: true
|
|
name:
|
|
description: "SSH key file name (default: id_rsa)"
|
|
required: false
|
|
default: "id_rsa"
|
|
known_hosts:
|
|
description: "public keys of SSH servers"
|
|
required: true
|
|
default: ""
|
|
config:
|
|
description: "SSH config"
|
|
required: false
|
|
default: ""
|
|
if_key_exists:
|
|
description: "replace / ignore / fail"
|
|
required: false
|
|
default: "fail"
|
|
runs:
|
|
using: "node12"
|
|
main: "lib/index.js"
|