This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user