ci: 修复 runner 标签(self-hosted → ubuntu-22.04)

Gitea 管理 UI 显示 runner 信息:
  名称: hermes-runner
  版本: v0.6.1
  类型: 全局
  标签: ubuntu-22.04
  状态: 空闲(在线)

之前两次猜测都错了:
  ubuntu-latest → 不是 GitHub 约定,匹配失败
  self-hosted   → 这个 runner 没注册该标签

最终实际标签:ubuntu-22.04(建议未来 .gitea/README.md 添加 runner 标签说明)
This commit is contained in:
Matrix Music Bot Dev
2026-07-03 00:16:21 +08:00
parent 9e62e995a9
commit 89ee450d6e
+2 -2
View File
@@ -39,7 +39,7 @@ env:
jobs:
build:
name: build-push
runs-on: self-hosted # Gitea runner 默认标签(act_runner 注册时未指定 --labels 时
runs-on: ubuntu-22.04 # Gitea runner 实际标签(hermes-runner
timeout-minutes: 30
steps:
@@ -117,7 +117,7 @@ jobs:
scan:
name: vulnerability-scan
needs: build
runs-on: self-hosted
runs-on: ubuntu-22.04
timeout-minutes: 10
continue-on-error: true # 扫描失败不阻塞流程