@@ -4,6 +4,9 @@ description: 원격 서버에서 명령어를 실행
|
|||||||
inputs:
|
inputs:
|
||||||
host:
|
host:
|
||||||
required: true
|
required: true
|
||||||
|
port:
|
||||||
|
required: false
|
||||||
|
default: "22"
|
||||||
user:
|
user:
|
||||||
required: true
|
required: true
|
||||||
key-path:
|
key-path:
|
||||||
@@ -19,7 +22,7 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
ssh -i "${{ inputs.key-path }}" \
|
ssh -p ${{ inputs.port }} -i "${{ inputs.key-path }}" \
|
||||||
"${{ inputs.user }}@${{ inputs.host }}" \
|
"${{ inputs.user }}@${{ inputs.host }}" \
|
||||||
'bash -se' << 'EOF'
|
'bash -se' << 'EOF'
|
||||||
${{ inputs.command }}
|
${{ inputs.command }}
|
||||||
|
|||||||
Reference in New Issue
Block a user