From 61a940e3eb76ea3e9d27ca0abf05c3f491a7ee5a Mon Sep 17 00:00:00 2001 From: "kihwan.song" Date: Thu, 30 Apr 2026 20:22:10 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9B=90=EA=B2=A9=20=EB=AA=85=EB=A0=B9?= =?UTF-8?q?=EC=96=B4=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- remote-command/action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/remote-command/action.yml b/remote-command/action.yml index f6d26f5..99e9606 100644 --- a/remote-command/action.yml +++ b/remote-command/action.yml @@ -11,7 +11,7 @@ inputs: required: true key-path: required: false - default: ~/.ssh/deploy_key + default: "" command: required: true @@ -22,7 +22,13 @@ runs: run: | set -eu - ssh -p ${{ inputs.port }} -i "${{ inputs.key-path }}" \ + KEY_PATH="${{ inputs.key-path }}" + if [ -z "$KEY_PATH" ]; then + KEY_PATH="$HOME/.ssh/deploy_key" + fi + + ssh -p "${{ inputs.port }}" -i "$KEY_PATH" \ + -o IdentitiesOnly=yes \ "${{ inputs.user }}@${{ inputs.host }}" \ 'bash -se' << 'EOF' ${{ inputs.command }}