From 122f35dca5c7a216463c504741deb0de5b301953 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 13 Feb 2020 21:20:15 +0800 Subject: [PATCH] chore: improve ci workflow (#34) --- .github/workflows/ci.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7ee96c..bb997fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,8 +6,11 @@ jobs: name: Build runs-on: ubuntu-latest steps: + - name: checkout + uses: actions/checkout@v1 + - name: executing remote ssh commands using password - uses: appleboy/ssh-action@master + uses: ./ with: host: ${{ secrets.HOST }} username: ${{ secrets.USERNAME }} @@ -16,7 +19,7 @@ jobs: script: whoami - name: executing remote ssh commands using ssh key - uses: appleboy/ssh-action@master + uses: ./ with: host: ${{ secrets.HOST }} username: ${{ secrets.USERNAME }} @@ -25,7 +28,7 @@ jobs: script: whoami - name: multiple command - uses: appleboy/ssh-action@master + uses: ./ with: host: ${{ secrets.HOST }} username: ${{ secrets.USERNAME }} @@ -36,7 +39,7 @@ jobs: ls -al # - name: stop script if command error - # uses: appleboy/ssh-action@master + # uses: ./ # with: # host: ${{ secrets.HOST }} # username: ${{ secrets.USERNAME }} @@ -48,7 +51,7 @@ jobs: # ls -al - name: pass environment - uses: appleboy/ssh-action@master + uses: ./ env: FOO: "BAR" with: @@ -62,7 +65,7 @@ jobs: echo "I am $BAR, thanks" - name: pass multiple environment - uses: appleboy/ssh-action@master + uses: ./ env: FOO: "BAR" BAR: "FOO" @@ -79,7 +82,7 @@ jobs: echo "sha: $SHA" - name: ssh key passphrase - uses: appleboy/ssh-action@master + uses: ./ with: host: ${{ secrets.HOST }} username: ${{ secrets.USERNAME }}