Pārlūkot izejas kodu

Disable KSU versioning commands in action.yml

Comment out versioning logic for KSU in action.yml.
jimsterino98 2 mēneši atpakaļ
vecāks
revīzija
cd74a0b93f
1 mainītis faili ar 15 papildinājumiem un 14 dzēšanām
  1. 15 14
      .github/actions/ksun/action.yml

+ 15 - 14
.github/actions/ksun/action.yml

@@ -19,14 +19,14 @@ runs:
         #cd KernelSU-Next
         #git checkout c2013a15ae1eaca69032fa6016ffefb70adf6146
 
-        cd KernelSU-Next/kernel
-        COMMITS_COUNT=$(/usr/bin/git rev-list --count HEAD)
-        BASE_VERSION=30000
-        KSU_VERSION=$(expr $COMMITS_COUNT "+" $BASE_VERSION)
-        sed -i "s/^KSU_VERSION_FALLBACK := 1$/KSU_VERSION_FALLBACK := ${KSU_VERSION}/" Kbuild
+        #cd KernelSU-Next/kernel
+        #COMMITS_COUNT=$(/usr/bin/git rev-list --count HEAD)
+        #BASE_VERSION=30000
+        #KSU_VERSION=$(expr $COMMITS_COUNT "+" $BASE_VERSION)
+        #sed -i "s/^KSU_VERSION_FALLBACK := 1$/KSU_VERSION_FALLBACK := ${KSU_VERSION}/" Kbuild
 
-        KSU_GIT_TAG="$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.1")"
-        sed -i "s/^KSU_VERSION_TAG_FALLBACK := v0.0.1$/KSU_VERSION_TAG_FALLBACK := ${KSU_GIT_TAG}/" Kbuild
+        #KSU_GIT_TAG="$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.1")"
+        #sed -i "s/^KSU_VERSION_TAG_FALLBACK := v0.0.1$/KSU_VERSION_TAG_FALLBACK := ${KSU_GIT_TAG}/" Kbuild
 
         cd "$GITHUB_WORKSPACE"
         cat >> "$GKI_DEFCONFIG" << 'EOF'
@@ -44,14 +44,14 @@ runs:
         #cd KernelSU-Next
         #git checkout c2013a15ae1eaca69032fa6016ffefb70adf6146
 
-        cd KernelSU-Next/kernel
-        COMMITS_COUNT=$(/usr/bin/git rev-list --count HEAD)
-        BASE_VERSION=30000
-        KSU_VERSION=$(expr $COMMITS_COUNT "+" $BASE_VERSION)
-        sed -i "s/^KSU_VERSION_FALLBACK := 1$/KSU_VERSION_FALLBACK := ${KSU_VERSION}/" Kbuild
+        #cd KernelSU-Next/kernel
+        #COMMITS_COUNT=$(/usr/bin/git rev-list --count HEAD)
+        #BASE_VERSION=30000
+        #KSU_VERSION=$(expr $COMMITS_COUNT "+" $BASE_VERSION)
+        #sed -i "s/^KSU_VERSION_FALLBACK := 1$/KSU_VERSION_FALLBACK := ${KSU_VERSION}/" Kbuild
 
-        KSU_GIT_TAG="$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.1")"
-        sed -i "s/^KSU_VERSION_TAG_FALLBACK := v0.0.1$/KSU_VERSION_TAG_FALLBACK := ${KSU_GIT_TAG}/" Kbuild
+        #KSU_GIT_TAG="$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.1")"
+        #sed -i "s/^KSU_VERSION_TAG_FALLBACK := v0.0.1$/KSU_VERSION_TAG_FALLBACK := ${KSU_GIT_TAG}/" Kbuild
 
         cd "$GITHUB_WORKSPACE"
         cat >> "$GKI_DEFCONFIG" << 'EOF'
@@ -64,6 +64,7 @@ runs:
       shell: bash
       run: |
         cd "$COMMON/KernelSU-Next"
+
         # Fetch dev branch for version info (tags, commits, etc.)
         git fetch origin dev 2>/dev/null || true