TheWildJames 2 hónapja
szülő
commit
bc5439cb35
1 módosított fájl, 7 hozzáadás és 4 törlés
  1. 7 4
      .github/actions/kernelsu/action.yml

+ 7 - 4
.github/actions/kernelsu/action.yml

@@ -49,10 +49,13 @@ runs:
       shell: bash
       working-directory: ${{ github.workspace }}/kernel/KernelSU-Next
       run: |
-        # Extract and export KSU version info
-        KSU_GIT_VERSION=$(git rev-list --count HEAD 2>/dev/null)
-        KSU_GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null)
-        KSU_COMMIT=$(git rev-parse --short HEAD 2>/dev/null)
+        # Fetch dev branch for version info (tags, commits, etc.)
+        git fetch --depth=50 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_VERSION=$((30000 + KSU_GIT_VERSION))
         
         echo "KSU_GIT_TAG=$KSU_GIT_TAG" >> $GITHUB_ENV