From ff5a32e4f2909638b59a229599f99ff70af2bd19 Mon Sep 17 00:00:00 2001 From: log101 Date: Tue, 14 May 2024 15:40:37 +0000 Subject: [PATCH] add ssh step --- .gitea/workflows/demo.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 363fada..a927c70 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -16,4 +16,12 @@ jobs: - name: List files in the repository run: | ls ${{ gitea.workspace }} - - run: echo "This job's status is ${{ job.status }}." \ No newline at end of file + - 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 \ No newline at end of file