Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
6e65554384
commit
d11a2142f5
1 file changed
+4
-1
@@ -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 再建,附件不会重复
|
||||||
|
|||||||
Reference in new issue
Block a user