ci: keep Gitea checkout action
Some checks failed
Deploy Hugo Blog to k3s / build-and-deploy (push) Failing after 10s
Some checks failed
Deploy Hugo Blog to k3s / build-and-deploy (push) Failing after 10s
This commit is contained in:
@@ -24,22 +24,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
env:
|
uses: actions/checkout@v4
|
||||||
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
|
|
||||||
|
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user