act

在本地运行 GitHub Actions

补充说明

act 读取 .github/workflows,用 Docker 在本地模拟 GitHub Actions Runner。它适合快速验证工作流,但不能完全复现 GitHub 托管 Runner 的环境和所有 action。

常用示例

act -l
act push
act pull_request
act -j test
act -W .github/workflows/ci.yml
act -P ubuntu-latest=catthehacker/ubuntu:act-latest
act -s GITHUB_TOKEN="$GITHUB_TOKEN"
act --env-file .env
act --reuse
act --container-architecture linux/amd64

易错点与排错

相关命令