fix: CI checkout uses manual git clone instead of missing action
The actions/checkout@v4 action was 404 on git.tx1138.com causing instant build failures. Use manual git clone for reliability with host-mode runner. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
35c8420095
commit
5a850275b7
@ -11,9 +11,17 @@ jobs:
|
|||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: https://git.tx1138.com/actions/checkout@v4
|
run: |
|
||||||
with:
|
WORKSPACE="${GITHUB_WORKSPACE:-$(pwd)}"
|
||||||
fetch-depth: 1
|
cd "$WORKSPACE"
|
||||||
|
if [ -d .git ]; then
|
||||||
|
git fetch origin "${GITHUB_REF_NAME:-main}" --depth 1
|
||||||
|
git checkout FETCH_HEAD
|
||||||
|
else
|
||||||
|
git clone --depth 1 --branch "${GITHUB_REF_NAME:-main}" \
|
||||||
|
"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" "$WORKSPACE"
|
||||||
|
fi
|
||||||
|
echo "Checked out $(git rev-parse --short HEAD) on ${GITHUB_REF_NAME:-main}"
|
||||||
|
|
||||||
- name: Build backend
|
- name: Build backend
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user