File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,8 @@ runs:
143
143
else
144
144
curl -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/next/kernel/setup.sh" | bash -s ${{ inputs.ksun_branch }}
145
145
fi
146
+
147
+ git submodule update --init --recursive
146
148
147
149
- name : Apply SUSFS Patches
148
150
shell : bash
@@ -163,7 +165,10 @@ runs:
163
165
susfs_version=$(grep '#define SUSFS_VERSION' ../common/include/linux/susfs.h | awk -F'"' '{print $2}')
164
166
echo "SUSVER=$susfs_version" >> $GITHUB_ENV
165
167
BASE_VERSION=10200
166
- KSU_VERSION=$(expr $(curl -sI "https://api.github.com/repos/KernelSU-Next/KernelSU-Next/commits?sha=${{ inputs.ksun_branch }}&per_page=1" | grep -i "link:" | sed -n 's/.*page=\([0-9]*\)>; rel="last".*/\1/p') "+" $BASE_VERSION)
168
+ cd ./kernel
169
+ KSU_VERSION=$(expr $(/usr/bin/git rev-list --count HEAD) "+" $BASE_VERSION)
170
+ sed -i "s/DKSU_VERSION=11998/DKSU_VERSION=${KSU_VERSION}/" Makefile
171
+ cd ..
167
172
echo "KSUVER=$KSU_VERSION" >> $GITHUB_ENV
168
173
echo "KernelSU Next Version: $KSU_VERSION"
169
174
echo "SusFS Version: $susfs_version"
You can’t perform that action at this time.
0 commit comments