fix: replace actions/checkout@v4 with local git clone from Gitea
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Successful in 1m45s
Deploy Dashboard (Dev) / Frontend Tests (push) Has been cancelled
Deploy Dashboard (Dev) / Deploy to Dev (push) Has been cancelled
Deploy Dashboard (Dev) / Backend Tests (push) Has been cancelled
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Successful in 1m45s
Deploy Dashboard (Dev) / Frontend Tests (push) Has been cancelled
Deploy Dashboard (Dev) / Deploy to Dev (push) Has been cancelled
Deploy Dashboard (Dev) / Backend Tests (push) Has been cancelled
CI runner in China can't reach GitHub to download the checkout action. Clone directly from internal Gitea container (http://gitea:3000) instead. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -20,9 +20,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
if [ ! -d .git ]; then
|
||||||
ref: ${{ github.sha }}
|
git clone --branch "${GITHUB_REF_NAME}" --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Resolve image tags
|
- name: Resolve image tags
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -20,9 +20,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
if [ ! -d .git ]; then
|
||||||
fetch-depth: 1
|
git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
run: |
|
run: |
|
||||||
@@ -92,9 +93,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
if [ ! -d .git ]; then
|
||||||
fetch-depth: 1
|
git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
run: |
|
run: |
|
||||||
@@ -153,9 +155,10 @@ jobs:
|
|||||||
needs: [backend-tests, frontend-tests]
|
needs: [backend-tests, frontend-tests]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
if [ ! -d .git ]; then
|
||||||
fetch-depth: 1
|
git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Warm mirror cache for base images
|
- name: Warm mirror cache for base images
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -19,9 +19,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
if [ ! -d .git ]; then
|
||||||
fetch-depth: 1
|
git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
run: |
|
run: |
|
||||||
@@ -96,9 +97,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
if [ ! -d .git ]; then
|
||||||
fetch-depth: 1
|
git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
run: |
|
run: |
|
||||||
@@ -167,9 +169,10 @@ jobs:
|
|||||||
- /volume1/docker/nas-dashboard:/nas-dashboard
|
- /volume1/docker/nas-dashboard:/nas-dashboard
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
if [ ! -d .git ]; then
|
||||||
fetch-depth: 1
|
git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Warm mirror cache for base images
|
- name: Warm mirror cache for base images
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -14,9 +14,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
if [ ! -d .git ]; then
|
||||||
fetch-depth: 0
|
git clone "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
|
||||||
|
fi
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Run gitleaks
|
- name: Run gitleaks
|
||||||
@@ -38,9 +39,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
if [ ! -d .git ]; then
|
||||||
fetch-depth: 1
|
git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
run: |
|
run: |
|
||||||
@@ -133,9 +135,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
if [ ! -d .git ]; then
|
||||||
fetch-depth: 1
|
git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user