其實 Forgejo Actions Runner 的支援已經很完整了,直接複製 .github/workflows/ 的設定檔到 .forgejo/workflows/ 目錄就可以直接使用。
今天建立 runner 時,使用設定檔:
steps:
- name: "check out source code"
uses: "actions/checkout@v4"
結果執行時一直出現錯誤:
git fetch 'https://data.forgejo.org/actions/checkout' # ref=v4
原本以為是 runner 設定有問題,才會跑去抓 forgejo.org 的資料,沒想到是 Forgejo 網站的 app.ini 設定檔中 actions 的參數 DEFAULT_ACTIONS_URL 忘記設定:
[actions] ENABLED = true DEFAULT_ACTIONS_URL = https://github.com
調整好以後重新啟動,就會去拉 Github 的程式碼了。

