Просмотр исходного кода

Update build-kernel-release.yml

James McConnell 1 год назад
Родитель
Сommit
7f76b21db0
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      .github/workflows/build-kernel-release.yml

+ 2 - 2
.github/workflows/build-kernel-release.yml

@@ -185,7 +185,7 @@ jobs:
           
           
           BRANCH="${{ env.KSU_BRANCH }}"
           BRANCH="${{ env.KSU_BRANCH }}"
           
           
-          if [[ "$BRANCH" == "Stable" ]]; then
+          if [[ "$BRANCH" == "Stable" && "${{ inputs.kernelsu_variant }}" != "MKSU" ]]; then
             # Fetch the latest tag
             # Fetch the latest tag
             TAG=$(git ls-remote --tags --sort=-v:refname $REPO_URL | grep -o 'refs/tags/.*' | cut -d'/' -f3 | head -n1)
             TAG=$(git ls-remote --tags --sort=-v:refname $REPO_URL | grep -o 'refs/tags/.*' | cut -d'/' -f3 | head -n1)
             if [[ -z "$TAG" ]]; then
             if [[ -z "$TAG" ]]; then
@@ -195,7 +195,7 @@ jobs:
             KSU_REF=$TAG
             KSU_REF=$TAG
             KSU_URL="https://github.com/$REPO_URL2/releases/tag/$TAG"
             KSU_URL="https://github.com/$REPO_URL2/releases/tag/$TAG"
 
 
-          elif [[ "$BRANCH" == "Dev" ]]; then
+          elif [[ "$BRANCH" == "Dev" || "${{ inputs.kernelsu_variant }}" == "MKSU" ]]; then
             # Fetch the latest commit from "next" branch
             # Fetch the latest commit from "next" branch
             COMMIT_HASH=$(git ls-remote $REPO_URL refs/heads/$BRANCH | awk '{ print $1 }')
             COMMIT_HASH=$(git ls-remote $REPO_URL refs/heads/$BRANCH | awk '{ print $1 }')
             if [[ -z "$COMMIT_HASH" ]]; then
             if [[ -z "$COMMIT_HASH" ]]; then