From d17f5383ae5ca536cdc7d69c3990e231eec4c0af Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Sun, 7 Jun 2026 12:17:58 +0800 Subject: [PATCH] fix(ci): checkout dev branch explicitly via GITHUB_REF_NAME --- .gitea/workflows/deploy-dev.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy-dev.yml b/.gitea/workflows/deploy-dev.yml index 7abf889..314057c 100644 --- a/.gitea/workflows/deploy-dev.yml +++ b/.gitea/workflows/deploy-dev.yml @@ -22,7 +22,7 @@ jobs: - name: Checkout repository run: | 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 - name: Setup Python @@ -103,7 +103,7 @@ jobs: - name: Checkout repository run: | 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 - name: Setup Node.js @@ -166,7 +166,7 @@ jobs: - name: Checkout repository run: | 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 - name: Build dev Docker image @@ -198,7 +198,7 @@ jobs: - name: Checkout repository run: | 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 - name: Sync runtime compose file