원격 명령어 실행 스크립트 추가

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-28 10:36:58 +09:00
parent 1a5de54f88
commit 6113a22b83

26
remote-command/action.yml Normal file
View File

@@ -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