Skip to content

Commit

Permalink
update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianjnuwu committed Sep 9, 2023
1 parent 99e49eb commit 1a5de0f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ inputs:
USER:
description: "An agent, which can be a human or software agent, using a computer or network service."
required: true
KEY:
description: "A component of the Secure Shell protocol suite used to establish secure shell sessions between remote computers over insecure networks, using cryptographic techniques."
required: false
PASSWORD:
description: "Password to use for SSH authentication. If provided, it will be used instead of the key."
required: false
KEY:
description: "A component of the Secure Shell protocol suite used to establish secure shell sessions between remote computers over insecure networks, using cryptographic techniques."
required: false
REPO:
description: "The name of the repository where the action is located (default: the GitHub repository)."
default: ${{ github.repository }}
Expand All @@ -38,7 +38,6 @@ runs:
echo "${{ inputs.KEY }}" > ~/.ssh/ssh.key
chmod 600 ~/.ssh/ssh.key
elif [[ -n "${{ inputs.PASSWORD }}" ]]; then
echo "PasswordAuthentication yes" > ~/.ssh/config
echo "${{ inputs.PASSWORD }}" > ~/.ssh/password.txt
fi
shell: bash
Expand Down

0 comments on commit 1a5de0f

Please sign in to comment.