diff --git a/.gitea/workflows/test-ssh.yaml b/.gitea/workflows/test-ssh.yaml new file mode 100644 index 0000000..2fb93f4 --- /dev/null +++ b/.gitea/workflows/test-ssh.yaml @@ -0,0 +1,20 @@ +name: Test SSH Connection + +on: + workflow_dispatch: # Allows you to trigger this manually from the Gitea UI + +jobs: + test-ssh: + runs-on: ubuntu-latest + steps: + - name: Run SSH Command Test + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.WEB_HOST }} + port: ${{ secrets.WEB_PORT }} + username: ${{ secrets.WEB_USER }} + key: ${{ secrets.WEB_KEY }} + script: | + echo "Successfully connected!" + whoami + pwd