From 314d43d5be75cd0bb58c25ab53a8e0df275fd092 Mon Sep 17 00:00:00 2001 From: snowykami Date: Sun, 13 Apr 2025 23:40:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=B7=BB=E5=8A=A0=20QEMU=20?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=AD=A5=E9=AA=A4=EF=BC=9B=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=BF=A1=E6=81=AF=EF=BC=8C=E6=98=8E=E7=A1=AE?= =?UTF-8?q?=E4=B8=8D=E5=85=81=E8=AE=B8=E7=9A=84=E4=BB=93=E5=BA=93=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/release-nightly.yml | 3 +++ internal/app/run/runner.go | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release-nightly.yml b/.gitea/workflows/release-nightly.yml index 63b4050..f8a7f31 100644 --- a/.gitea/workflows/release-nightly.yml +++ b/.gitea/workflows/release-nightly.yml @@ -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 diff --git a/internal/app/run/runner.go b/internal/app/run/runner.go index fa789bb..8a62f49 100644 --- a/internal/app/run/runner.go +++ b/internal/app/run/runner.go @@ -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") }