From d808c58ff0c91c5066e1041e20e57fa1764e5f05 Mon Sep 17 00:00:00 2001 From: Garfield Date: Wed, 18 Nov 2026 22:33:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E7=AD=BE=E5=87=BA=E5=92=8C=20API=20=E6=94=B9=E8=B5=B0=E5=85=AC?= =?UTF-8?q?=E7=BD=91=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 121e518..cb8d0df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,11 @@ jobs: container: image: node:22-bookworm steps: + # 实例内网地址在任务容器里解析不了,签出和 API 都走公网地址 - name: Checkout uses: actions/checkout@v4 + with: + github-server-url: https://git.garfieldho.me - name: Resolve version id: ver @@ -51,7 +54,7 @@ jobs: run: | set -euo pipefail : "${TOKEN:?没有可用令牌:没有内置令牌,也没有配置 RELEASE_TOKEN}" - API="${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}" + API="https://git.garfieldho.me/api/v1/repos/${GITHUB_REPOSITORY}" AUTH="Authorization: token ${TOKEN}" # 同一标签重跑:删掉旧 Release 再建,附件不会重复