ci: keep Gitea checkout action
Some checks failed
Deploy Hugo Blog to k3s / build-and-deploy (push) Failing after 10s

This commit is contained in:
root
2026-06-02 05:57:13 +08:00
parent 9060b97178
commit cd4b859744

View File

@@ -24,22 +24,7 @@ jobs:
steps:
- name: Checkout
env:
HTTP_PROXY: http://10.0.2.2:7890
HTTPS_PROXY: http://10.0.2.2:7890
ALL_PROXY: socks5://10.0.2.2:7891
NO_PROXY: localhost,127.0.0.1,.svc,.cluster.local,gitea-http.gitea.svc.cluster.local,git.luochen570.cn,docker.gitea.com
run: |
set -euo pipefail
git init .
if git remote get-url origin >/dev/null 2>&1; then
git remote set-url origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git"
else
git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git"
fi
git fetch --depth=1 origin "$GITHUB_SHA"
git checkout --detach FETCH_HEAD
git submodule update --init --recursive --depth=1
uses: actions/checkout@v4
- name: Setup Hugo
env: