ssh
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 18s

This commit is contained in:
编码猿
2025-10-05 02:40:59 +08:00
parent da7c078377
commit e05fc3d400
4 changed files with 44 additions and 49 deletions

View File

@@ -16,6 +16,15 @@ jobs:
# 步骤序列
steps:
- name: 执行远程 SSH 命令(密码认证)
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: whoami
# 步骤1输出事件信息
- run: echo "🎉 该作业由 ${{ gitea.event_name }} 事件自动触发。"