Quellcode durchsuchen

ci(build): reorder ksu_commit condition checks in workflow

The condition checks for ksu_commit were reordered to prioritize "wild" and "pershoot" cases before checking for a specific commit. This makes the logic more intuitive and matches the expected usage pattern.
TheWildJames vor 8 Monaten
Ursprung
Commit
22f676f097
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      .github/workflows/build.yml

+ 3 - 3
.github/workflows/build.yml

@@ -198,14 +198,14 @@ jobs:
             fi
             fi
             ;;
             ;;
           Next)
           Next)
-            if [ -n "${{ inputs.ksu_commit }}" ]; then
-              curl -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/stable/kernel/setup.sh" | bash -s "${{ inputs.ksu_commit }}"
-            elif [ ${{ inputs.ksu_commit }} == "wild" ]; then
+            if [ ${{ inputs.ksu_commit }} == "wild" ]; then
               curl -LSs "https://raw.githubusercontent.com/WildKernels/KernelSU-Next/wild/kernel/setup.sh" | bash -s wild
               curl -LSs "https://raw.githubusercontent.com/WildKernels/KernelSU-Next/wild/kernel/setup.sh" | bash -s wild
             elif [ ${{ inputs.ksu_commit }} == "pershoot" ]; then
             elif [ ${{ inputs.ksu_commit }} == "pershoot" ]; then
               curl -LSs "https://raw.githubusercontent.com/pershoot/KernelSU-Next/dev-susfs/kernel/setup.sh" | bash -
               curl -LSs "https://raw.githubusercontent.com/pershoot/KernelSU-Next/dev-susfs/kernel/setup.sh" | bash -
               cd KernelSU-Next
               cd KernelSU-Next
               #git restore --source=5aad87b3c6319330d6991ba4c937e44e50fe16f5^ -- kernel/Kbuild
               #git restore --source=5aad87b3c6319330d6991ba4c937e44e50fe16f5^ -- kernel/Kbuild
+            elif [ -n "${{ inputs.ksu_commit }}" ]; then
+              curl -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/stable/kernel/setup.sh" | bash -s "${{ inputs.ksu_commit }}"
             else
             else
               curl -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/dev/kernel/setup.sh" | bash -
               curl -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/dev/kernel/setup.sh" | bash -
             fi
             fi