ci: authenticate production checkout
CI / test (pull_request) Successful in 6m54s
PR合并自动部署 / release-check (pull_request) Successful in 3s
PR合并自动部署 / deploy (pull_request) Failing after 3s

This commit is contained in:
2026-09-29 00:16:33 +08:00
parent 881cee958d
commit 3d61deefd3
+8 -2
View File
@@ -19,8 +19,14 @@ jobs:
steps: steps:
- name: 检出 main - name: 检出 main
env: env:
REPOSITORY_URL: http://117.72.28.96:8765/Jacky/Hulumath-Web.git CHECKOUT_TOKEN: ${{ github.token }}
run: git clone --branch main --single-branch "$REPOSITORY_URL" . run: |
set -euo pipefail
git init .
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
git -c http.extraHeader="Authorization: token ${CHECKOUT_TOKEN}" \
fetch --depth=1 origin main
git checkout --detach FETCH_HEAD
- name: 检查发布文件和脚本语法 - name: 检查发布文件和脚本语法
run: | run: |