diff --git a/action.yml b/action.yml index e3aad86..9134332 100644 --- a/action.yml +++ b/action.yml @@ -72,9 +72,21 @@ inputs: description: "pass all environment variable to shell script." request_pty: description: "Request a pseudo-terminal from the server." +# runs: +# using: "docker" +# image: "Dockerfile" runs: - using: "docker" - image: "Dockerfile" + using: "composite" + steps: + - name: Set GitHub Path + run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH + shell: bash + env: + GITHUB_ACTION_PATH: ${{ github.action_path }} + + - name: Run entrypoint.sh + run: entrypoint.sh + shell: bash branding: icon: "terminal" diff --git a/entrypoint.sh b/entrypoint.sh index f880594..d5d7e49 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,4 +4,6 @@ set -eu export GITHUB="true" +curl -v https://github.com/appleboy/drone-ssh/releases/download/v1.7.4/drone-ssh-1.7.4-linux-amd64 -o /bin/drone-ssh + sh -c "/bin/drone-ssh $*"