与GitHub Actions的对比
尽管Gitea Actions旨在与GitHub Actions兼容,但它们之间存在一些差异。
额外功能
Action URL绝对路径
Gitea Actions支持通过URL绝对路径定义actions,这意味着您可以使用来自任何Git存储库的Actions。
例如,uses: https://github.com/actions/checkout@v3
或uses: http://your_gitea.com/owner/repo@branch
。
使用Go编写Actions
Gitea Actions支持使用Go编写Actions。 请参阅创建Go Actions。
支持非标准的调度语法 @yearly, @monthly, @weekly, @daily, @hourly
Github Actions 不支持这些语法,详见: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
不支持的工作流语法
concurrency
这是用于一次运行一个Job。 请参阅使用并发。
Gitea Actions目前不支持此功能。
run-name
这是工作流生成的工作流运行的名称。 请参阅GitHub Actions 的工作流语法。
Gitea Actions目前不支持此功能。
permissions
和jobs.<job_id>.permissions
Gitea Actions目前不支持此功能。
jobs.<job_id>.timeout-minutes
Gitea Actions目前不支持此功能。
jobs.<job_id>.continue-on-error
Gitea Actions目前不支持此功能。
jobs.<job_id>.environment
Gitea Actions 目前不支持此功能。
复杂的runs-on
Gitea Actions目前只支持runs-on: xyz