diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 2063465..c264453 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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: