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

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
GarfieldandCopilot committed 2026-11-18 22:35:41 +08:00
1 parent 57ac01d896
commit c8ea7c0477
1 file changed
+4 -1
+4 -1
View File
@@ -14,8 +14,11 @@ jobs:
container: container:
image: node:22-bookworm image: node:22-bookworm
steps: steps:
# 实例内网地址在任务容器里解析不了,签出和 API 都走公网地址
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
github-server-url: https://git.garfieldho.me
- name: Resolve version - name: Resolve version
id: ver id: ver
@@ -51,7 +54,7 @@ jobs:
run: | run: |
set -euo pipefail set -euo pipefail
: "${TOKEN:?没有可用令牌:没有内置令牌,也没有配置 RELEASE_TOKEN}" : "${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}" AUTH="Authorization: token ${TOKEN}"
# 同一标签重跑:删掉旧 Release 再建,附件不会重复 # 同一标签重跑:删掉旧 Release 再建,附件不会重复