ci: checkout from local Gitea
CI / test (pull_request) Failing after 2m56s

This commit is contained in:
2026-08-08 22:58:31 +08:00
parent cee657faac
commit cfc9d99820
2 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -20,7 +20,13 @@ jobs:
--health-timeout 5s --health-timeout 5s
--health-retries 20 --health-retries 20
steps: steps:
- uses: https://gitea.com/actions/checkout@v4 - name: Checkout repository
env:
REPOSITORY_URL: http://117.72.28.96:8765/Jacky/Hulumath-Web.git
REVISION: ${{ gitea.sha }}
run: |
git clone "$REPOSITORY_URL" .
git checkout --detach "$REVISION"
- name: Show Python version - name: Show Python version
run: python3 --version run: python3 --version
- name: Install MySQL build dependencies - name: Install MySQL build dependencies
+3 -3
View File
@@ -28,9 +28,9 @@ jobs:
--health-retries 20 --health-retries 20
steps: steps:
- name: 检出 main - name: 检出 main
uses: https://gitea.com/actions/checkout@v4 env:
with: REPOSITORY_URL: http://117.72.28.96:8765/Jacky/Hulumath-Web.git
ref: main run: git clone --branch main --single-branch "$REPOSITORY_URL" .
- name: 显示 Python 版本 - name: 显示 Python 版本
run: python3 --version run: python3 --version