|
33 | 33 | description: 'Enter KernelSU build json' |
34 | 34 | required: true |
35 | 35 | type: string |
36 | | - default: '[{"type":"ksun","hash":"next"}]' |
| 36 | + default: '[{"type":"ksun","hash":"dev"}]' |
37 | 37 | optimize_level: |
38 | 38 | description: "Compiler optimization level" |
39 | 39 | required: true |
|
88 | 88 | |
89 | 89 | input="${{ github.event.inputs.op_model }}" |
90 | 90 | ksu_options_raw='${{ github.event.inputs.ksu_options }}' |
91 | | - if ! ksu_options_normalized=$(echo "$ksu_options_raw" | jq -c 'map(if .type then .type |= ascii_upcase | if .hash == null then if .type == "KSUN" then .hash = "next" elif .type == "KSU" then .hash = "main" else .hash end else . end else error("No type found") end)' 2>&1); then |
| 91 | + if ! ksu_options_normalized=$(echo "$ksu_options_raw" | jq -c 'map(if .type then .type |= ascii_upcase | if .hash == null then if .type == "KSUN" then .hash = "dev" elif .type == "KSU" then .hash = "main" else .hash end else . end else error("No type found") end)' 2>&1); then |
92 | 92 | echo "::error::ksu_options validation failed: $ksu_options_normalized" |
93 | 93 | exit 1 |
94 | 94 | fi |
@@ -180,7 +180,7 @@ jobs: |
180 | 180 | - name: 📊 Build plan summary |
181 | 181 | run: | |
182 | 182 | ksu_options_raw='${{ github.event.inputs.ksu_options }}' |
183 | | - ksu_options_normalized=$(echo "$ksu_options_raw" | jq -c 'map(if .type then .type |= ascii_upcase | if .hash == null then if .type == "KSUN" then .hash = "next" elif .type == "KSU" then .hash = "main" else .hash end else . end else error("No type found") end)' 2>&1) |
| 183 | + ksu_options_normalized=$(echo "$ksu_options_raw" | jq -c 'map(if .type then .type |= ascii_upcase | if .hash == null then if .type == "KSUN" then .hash = "dev" elif .type == "KSU" then .hash = "main" else .hash end else . end else error("No type found") end)' 2>&1) |
184 | 184 | |
185 | 185 | # export KSU_OPTIONS="$ksu_options_normalized" |
186 | 186 | |
@@ -571,7 +571,7 @@ jobs: |
571 | 571 | done |
572 | 572 | |
573 | 573 | ksu_options_raw='${{ github.event.inputs.ksu_options }}' |
574 | | - ksu_options_normalized=$(echo "$ksu_options_raw" | jq -c 'map(if .type then .type |= ascii_upcase | if .hash == null then if .type == "KSUN" then .hash = "next" elif .type == "KSU" then .hash = "main" else .hash end else . end else error("No type found") end)' 2>&1) |
| 574 | + ksu_options_normalized=$(echo "$ksu_options_raw" | jq -c 'map(if .type then .type |= ascii_upcase | if .hash == null then if .type == "KSUN" then .hash = "dev" elif .type == "KSU" then .hash = "main" else .hash end else . end else error("No type found") end)' 2>&1) |
575 | 575 | |
576 | 576 | ksun_hash=$(echo "$ksu_options_normalized" | jq -r 'map(select(.type == "KSUN")) | first | .hash // empty') |
577 | 577 | ksu_hash=$(echo "$ksu_options_normalized" | jq -r 'map(select(.type == "KSU")) | first | .hash // empty') |
|
0 commit comments