ci: use direct git checkout for Gitea Actions
Build, Push and Deploy / build (push) Successful in 26m9s
Build, Push and Deploy / deploy (push) Successful in 8s

This commit is contained in:
2026-08-30 15:06:32 +08:00
parent 52c2496331
commit ca5df31d54
+14 -2
View File
@@ -14,7 +14,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
run: |
set -euo pipefail
GITEA_URL="${GITHUB_SERVER_URL:-http://192.168.31.213:10880}"
git init -q .
git remote add origin "$GITEA_URL/$GITHUB_REPOSITORY.git"
git fetch -q --depth 1 origin "$GITHUB_SHA"
git checkout -q "$GITHUB_SHA"
- name: Login Harbor
run: |
@@ -46,7 +52,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout deploy config
uses: actions/checkout@v4
run: |
set -euo pipefail
GITEA_URL="${GITHUB_SERVER_URL:-http://192.168.31.213:10880}"
git init -q .
git remote add origin "$GITEA_URL/$GITHUB_REPOSITORY.git"
git fetch -q --depth 1 origin "$GITHUB_SHA"
git checkout -q "$GITHUB_SHA"
- name: Deploy WordCloud
run: |