Browse Source

Update git commands to use refs/remotes/origin/dev

jimsterino98 2 tháng trước cách đây
mục cha
commit
111e4bbd52
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      .github/actions/ksun/action.yml

+ 3 - 3
.github/actions/ksun/action.yml

@@ -69,9 +69,9 @@ runs:
         git fetch origin dev 2>/dev/null || true
         
         # Extract and export KSU version info from dev branch
-        KSU_GIT_VERSION=$(git rev-list --count origin/dev 2>/dev/null)
-        KSU_GIT_TAG=$(git describe --tags --abbrev=0 origin/dev 2>/dev/null || echo "")
-        KSU_COMMIT=$(git rev-parse --short origin/dev 2>/dev/null)
+        KSU_GIT_VERSION=$(git rev-list --count refs/remotes/origin/dev 2>/dev/null)
+        KSU_GIT_TAG=$(git describe --tags --abbrev=0 refs/remotes/origin/dev 2>/dev/null || echo "")
+        KSU_COMMIT=$(git rev-parse --short refs/remotes/origin/dev 2>/dev/null)
         KSU_VERSION=$((30000 + KSU_GIT_VERSION))
         
         echo "KSU_GIT_TAG=$KSU_GIT_TAG" >> $GITHUB_ENV