🐛 工作流签出和 API 改走公网地址
Release / release (push) Successful in 9s

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
GarfieldandCopilot committed 2026-11-18 22:34:32 +08:00
1 parent e6cc381224
commit 64e45be98a
1 file changed
+4 -1
+4 -1
View File
@@ -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 再建,附件不会重复