[0.2.7.4][ci]
Some checks failed
CI / docker-ci (push) Failing after 3s

This commit is contained in:
2026-03-18 20:39:00 +08:00
parent 71a0723a74
commit 415ddc7110

View File

@@ -49,11 +49,13 @@ jobs:
SHA: ${{ github.sha }} SHA: ${{ github.sha }}
TOKEN: ${{ secrets.GITHUB_TOKEN }} TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
git config --global init.defaultBranch main
if [ -f "$GITHUB_WORKSPACE/Dockerfile" ]; then exit 0; fi if [ -f "$GITHUB_WORKSPACE/Dockerfile" ]; then exit 0; fi
mkdir -p "$GITHUB_WORKSPACE" mkdir -p "$GITHUB_WORKSPACE"
cd "$GITHUB_WORKSPACE" cd "$GITHUB_WORKSPACE"
git init . git init .
if [ -z "$TOKEN" ]; then if [ -z "$TOKEN" ]; then
echo "Warning: GITHUB_TOKEN is not set. Attempting unauthenticated fetch (will fail for private repos)."
git fetch --depth=1 "$SERVER/$REPO.git" "$REF" git fetch --depth=1 "$SERVER/$REPO.git" "$REF"
else else
git -c http.extraHeader="Authorization: Bearer $TOKEN" fetch --depth=1 "$SERVER/$REPO.git" "$REF" git -c http.extraHeader="Authorization: Bearer $TOKEN" fetch --depth=1 "$SERVER/$REPO.git" "$REF"