Skip to content

Commit 3f194e4

Browse files
committed
Remove hook support conditionally
1 parent 4febb6a commit 3f194e4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/actions/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,12 @@ runs:
633633
echo "KSUVER=$KSU_VERSION" >> $GITHUB_ENV
634634
echo "KernelSU Next Version: $KSU_VERSION"
635635
echo "✅ KernelSU Next added (commit: ${KSU_COMMIT_SHA:0:8})"
636-
echo "NEED_HOOKS=true" >> $GITHUB_ENV
636+
637+
if [ "$KSU_VERSION" -lt 12884 ]; then
638+
echo "NEED_HOOKS=true" >> $GITHUB_ENV
639+
else
640+
echo "NEED_HOOKS=false" >> $GITHUB_ENV
641+
fi
637642
echo "::endgroup::"
638643
639644
- name: Add KernelSU
@@ -662,7 +667,7 @@ runs:
662667
echo "KSUVER=$KSU_VERSION" >> $GITHUB_ENV
663668
echo "KernelSU Version: $KSU_VERSION"
664669
echo "✅ KernelSU added (commit: ${KSU_COMMIT_SHA:0:8})"
665-
echo "NEED_HOOKS=true" >> $GITHUB_ENV
670+
echo "NEED_HOOKS=false" >> $GITHUB_ENV
666671
echo "::endgroup::"
667672
668673
- name: Apply SUSFS Patches

0 commit comments

Comments
 (0)