diff --git a/remote-command/action.yml b/remote-command/action.yml index 053b245..f6d26f5 100644 --- a/remote-command/action.yml +++ b/remote-command/action.yml @@ -4,6 +4,9 @@ description: 원격 서버에서 명령어를 실행 inputs: host: required: true + port: + required: false + default: "22" user: required: true key-path: @@ -19,7 +22,7 @@ runs: run: | set -eu - ssh -i "${{ inputs.key-path }}" \ + ssh -p ${{ inputs.port }} -i "${{ inputs.key-path }}" \ "${{ inputs.user }}@${{ inputs.host }}" \ 'bash -se' << 'EOF' ${{ inputs.command }}