diff --git a/.github/workflows/build-kernel.yml b/.github/workflows/build-kernel.yml index ae3ca7aac3..9c0a89bbad 100644 --- a/.github/workflows/build-kernel.yml +++ b/.github/workflows/build-kernel.yml @@ -184,8 +184,10 @@ jobs: if: env.ENABLE_KERNELSU == 'true' run: | cd $GITHUB_WORKSPACE/kernel_workspace/android-kernel + rm -rf KernelSU drivers/kernelsu curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s ${{ env.KERNELSU_TAG }} - echo "UPLOADNAME=-KernelSU" >> $GITHUB_ENV + KSU_VERSION=$(cd KernelSU && expr $(/usr/bin/git rev-list --count HEAD) + 10200) + echo "UPLOADNAME=-KernelSU_$KSU_VERSION" >> $GITHUB_ENV - name: Setup Configuration for Kernel run: |