From 6113a22b838c44046e4f557c86fcdde1b3b69d76 Mon Sep 17 00:00:00 2001 From: "kihwan.song" Date: Tue, 28 Apr 2026 10:36:58 +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=8B=A4=ED=96=89=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot --- remote-command/action.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 remote-command/action.yml diff --git a/remote-command/action.yml b/remote-command/action.yml new file mode 100644 index 0000000..053b245 --- /dev/null +++ b/remote-command/action.yml @@ -0,0 +1,26 @@ +name: 원격 명령어 실행 +description: 원격 서버에서 명령어를 실행 + +inputs: + host: + required: true + user: + required: true + key-path: + required: false + default: ~/.ssh/deploy_key + command: + required: true + +runs: + using: composite + steps: + - shell: bash + run: | + set -eu + + ssh -i "${{ inputs.key-path }}" \ + "${{ inputs.user }}@${{ inputs.host }}" \ + 'bash -se' << 'EOF' + ${{ inputs.command }} + EOF \ No newline at end of file