Skip to content

Commit 7a8cbaf

Browse files
committed
Allow commit hash as input for KSUN
1 parent 7967a2e commit 7a8cbaf

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/actions/action.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,9 @@ runs:
197197
cd "$CONFIG/kernel_platform"
198198
echo "Adding KernelSU Next..."
199199
if [ "${{ inputs.ksun_branch }}" = "stable" ]; then
200-
curl --fail --location --proto '=https' \
201-
-LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/next/kernel/setup.sh" | bash -
200+
curl --fail --location --proto '=https' -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/next/kernel/setup.sh" | bash -
202201
else
203-
curl --fail --location --proto '=https' \
204-
-LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/next/kernel/setup.sh" | bash -s "${{ inputs.ksun_branch }}"
202+
curl --fail --location --proto '=https' -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/next/kernel/setup.sh" | bash -s "${{ inputs.ksun_branch }}"
205203
fi
206204
git submodule update --init --recursive
207205

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ on:
1313
type: boolean
1414
default: false
1515
ksun_branch:
16-
description: 'Choose KernelSU Next Branch'
16+
description: 'Enter KernelSU Next Branch or commit hash (blank for stable tag)'
1717
required: true
18-
type: choice
19-
options:
20-
- stable
21-
- next
18+
type: string
2219
default: next
2320
optimize_level:
2421
description: "Compiler optimization level"

0 commit comments

Comments
 (0)