fix(ci): checkout dev branch explicitly via GITHUB_REF_NAME
Deploy Dashboard (Dev) / Frontend Tests (push) Successful in 1m23s
Deploy Dashboard (Dev) / Backend Tests (push) Failing after 10m52s
Deploy Dashboard (Dev) / Build Dev Image (push) Has been skipped
Deploy Dashboard (Dev) / Deploy to Dev (push) Has been skipped

This commit is contained in:
Gan, Jimmy
2026-06-07 12:17:58 +08:00
parent ce0a800087
commit d17f5383ae
+4 -4
View File
@@ -22,7 +22,7 @@ jobs:
- name: Checkout repository - name: Checkout repository
run: | run: |
if [ ! -d .git ]; then if [ ! -d .git ]; then
git clone --depth=1 "http://100.78.131.124:3300/${GITHUB_REPOSITORY}.git" . git clone --depth=1 --branch "$GITHUB_REF_NAME" "http://100.78.131.124:3300/${GITHUB_REPOSITORY}.git" .
fi fi
- name: Setup Python - name: Setup Python
@@ -103,7 +103,7 @@ jobs:
- name: Checkout repository - name: Checkout repository
run: | run: |
if [ ! -d .git ]; then if [ ! -d .git ]; then
git clone --depth=1 "http://100.78.131.124:3300/${GITHUB_REPOSITORY}.git" . git clone --depth=1 --branch "$GITHUB_REF_NAME" "http://100.78.131.124:3300/${GITHUB_REPOSITORY}.git" .
fi fi
- name: Setup Node.js - name: Setup Node.js
@@ -166,7 +166,7 @@ jobs:
- name: Checkout repository - name: Checkout repository
run: | run: |
if [ ! -d .git ]; then if [ ! -d .git ]; then
git clone --depth=1 "http://100.78.131.124:3300/${GITHUB_REPOSITORY}.git" . git clone --depth=1 --branch "$GITHUB_REF_NAME" "http://100.78.131.124:3300/${GITHUB_REPOSITORY}.git" .
fi fi
- name: Build dev Docker image - name: Build dev Docker image
@@ -198,7 +198,7 @@ jobs:
- name: Checkout repository - name: Checkout repository
run: | run: |
if [ ! -d .git ]; then if [ ! -d .git ]; then
git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" . git clone --depth=1 --branch "$GITHUB_REF_NAME" "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
fi fi
- name: Sync runtime compose file - name: Sync runtime compose file