更新工作流配置,添加 QEMU 设置步骤;优化日志信息,明确不允许的仓库提示
Some checks failed
checks / check and test (push) Failing after 6m5s
release-nightly / release-image (push) Successful in 17m6s

This commit is contained in:
远野千束 2025-04-13 23:40:11 +08:00
parent f3622b3d44
commit 314d43d5be
2 changed files with 6 additions and 2 deletions

View File

@ -20,6 +20,9 @@ jobs:
with:
fetch-depth: 0 # all history for all branches and tags
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3

View File

@ -124,8 +124,9 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report.
// verify owner and repo
if !matchAllowedRepo(task.Context.Fields["repository"].GetStringValue(), r.cfg.Runner.AllowedRepos) {
// not matched
log.Warnf("Repository %s not in allowed_repos to run workflows, please replace with other labels", task.Context.Fields["repository"].GetStringValue())
reporter.Logf("Repository %s not in allowed_repos to run workflows, please replace with other labels", task.Context.Fields["repository"].GetStringValue())
log.Warnf("Repository %s is not in allowed_repos to run workflows", task.Context.Fields["repository"].GetStringValue())
reporter.Logf("Repository %s is not allowed to run workflows on this runner, please add \"public\" label in \"runs-on\" to use public runners\n"+
"储存库 %s 不被允许在此 runner 上运行 workflows请在 runs-on 中加上 \"public\" 以使用我们的赞助商 007idc(https://www.007idc.cn/)提供的runners", task.Context.Fields["repository"].GetStringValue())
return errors.New("repository not in allowed_repos")
}