Files
ai-portal/.gitea/workflows/demo.yaml
T

22 lines
611 B
YAML

name: Gitea Actions Demo
on:
workflow_dispatch:
jobs:
explore-gitea-actions:
runs-on: ubuntu-latest
steps:
- name: 1. 打印触发事件
run: echo "🚀 该任务是由手动触发成功启动的!"
- name: 2. 检查操作系统信息
run: |
echo "🐧 当前运行在: ${{ runner.os }} 编译机上"
uname -a
- name: 3. 跳过代码拉取直接测试网络
run: |
echo "🌐 正在测试这台编译容器是否能访问外网..."
curl -I -m 5 https://baidu.com || echo "❌ 容器无法正常访问外网"