From 2a9f26b95206c33e86ca46fb2c1526cf79899ada Mon Sep 17 00:00:00 2001 From: liyp Date: Fri, 23 Oct 2026 13:13:58 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=8F=AA=E5=9C=A8=20GitHub=20=E4=B8=8A?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=EF=BC=8CGitea=20=E4=BE=A7=E8=B7=B3=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gitea 会扫描 .github/workflows,v1.0.1 推送后它排了一个永远 queued 的任务。 用 github.server_url 做判断:只有 https://github.com 才执行。 --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b237c2..97b6bfd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,8 @@ concurrency: jobs: test: name: End-to-end tests + # Gitea also discovers .github/workflows; this keeps the run on GitHub only. + if: github.server_url == 'https://github.com' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -43,6 +45,7 @@ jobs: release: name: Build and publish needs: test + if: github.server_url == 'https://github.com' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4