add ssh step

This commit is contained in:
log101 2024-05-14 15:40:37 +00:00
parent e5121d642f
commit ff5a32e4f2

View File

@ -17,3 +17,11 @@ jobs:
run: | run: |
ls ${{ gitea.workspace }} ls ${{ gitea.workspace }}
- run: echo "This job's status is ${{ job.status }}." - run: echo "This job's status is ${{ job.status }}."
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: whoami