Explorar o código

fix(action): standardize feature set input values to 'ALL' for consistency

TheWildJames hai 4 meses
pai
achega
1f8447175a
Modificáronse 2 ficheiros con 20 adicións e 20 borrados
  1. 4 4
      .github/workflows/build.yml
  2. 16 16
      .github/workflows/main.yml

+ 4 - 4
.github/workflows/build.yml

@@ -100,13 +100,13 @@ jobs:
         os_patch_level: ${{ steps.parse.outputs.os_patch_level }}
 
     - name: Setup KernelSU-Next
-      if: contains(inputs.feature_set, 'KSUN') || inputs.feature_set == 'All'
+      if: contains(inputs.feature_set, 'KSUN') || inputs.feature_set == 'all'
       uses: ./.github/actions/kernelsu
       with:
         ksu_commit: ${{ inputs.ksu_commit }}
 
     - name: SUSFS
-      if: contains(inputs.feature_set, 'SUSFS') || inputs.feature_set == 'All'
+      if: contains(inputs.feature_set, 'SUSFS') || inputs.feature_set == 'all'
       uses: ./.github/actions/susfs
       with:
         android_version: ${{ steps.parse.outputs.android_version }}
@@ -116,11 +116,11 @@ jobs:
         susfs_commit: ${{ inputs.susfs_commit }}
 
     - name: Baseband Guard
-      if: contains(inputs.feature_set, 'BBG') || inputs.feature_set == 'All'
+      if: contains(inputs.feature_set, 'BBG') || inputs.feature_set == 'all'
       uses: ./.github/actions/bbg
 
     - name: Setup Networking
-      if: contains(inputs.feature_set, 'NET') || inputs.feature_set == 'All'
+      if: contains(inputs.feature_set, 'NET') || inputs.feature_set == 'all'
       uses: ./.github/actions/networking
       with:
         kernel_version: ${{ steps.parse.outputs.kernel_version }}

+ 16 - 16
.github/workflows/main.yml

@@ -35,8 +35,8 @@ on:
           - KSUN+NET
           - BBG
           - None
-          - All
-        default: All
+          - ALL
+        default: ALL
       ksu_commit:
         description: "KSU Commit (optional)"
         type: string
@@ -70,7 +70,7 @@ jobs:
           ksu_commit: ${{ inputs.ksu_commit }}
 
   build-a12-5-10:
-    if: ${{ inputs.kernel_build_version == 'all' || inputs.kernel_build_version == 'a12-5-10' }}
+    if: ${{ inputs.kernel_build_version == 'All' || inputs.kernel_build_version == 'a12-5-10' }}
     needs: fetch-commits
     uses: ./.github/workflows/prepare.yml
     with:
@@ -79,12 +79,12 @@ jobs:
       anykernel_commit: ${{ needs.fetch-commits.outputs.anykernel_commit }}
       patches_commit: ${{ needs.fetch-commits.outputs.patches_commit }}
       susfs_commit: ${{ needs.fetch-commits.outputs.susfs_commit }}
-      feature_set: ${{ inputs.feature_set || 'KSUN+SUSFS+BBG' }}
+      feature_set: ${{ inputs.feature_set || 'ALL' }}
       variant: ${{ inputs.variant || 'Normal' }}
     secrets: inherit
 
   build-a13-5-10:
-    if: ${{ inputs.kernel_build_version == 'all' || inputs.kernel_build_version == 'a13-5-10' }}
+    if: ${{ inputs.kernel_build_version == 'All' || inputs.kernel_build_version == 'a13-5-10' }}
     needs: fetch-commits
     uses: ./.github/workflows/prepare.yml
     with:
@@ -93,12 +93,12 @@ jobs:
       anykernel_commit: ${{ needs.fetch-commits.outputs.anykernel_commit }}
       patches_commit: ${{ needs.fetch-commits.outputs.patches_commit }}
       susfs_commit: ${{ needs.fetch-commits.outputs.susfs_commit }}
-      feature_set: ${{ inputs.feature_set || 'KSUN+SUSFS+BBG' }}
+      feature_set: ${{ inputs.feature_set || 'ALL' }}
       variant: ${{ inputs.variant || 'Normal' }}
     secrets: inherit
 
   build-a13-5-15:
-    if: ${{ inputs.kernel_build_version == 'all' || inputs.kernel_build_version == 'a13-5-15' }}
+    if: ${{ inputs.kernel_build_version == 'All' || inputs.kernel_build_version == 'a13-5-15' }}
     needs: fetch-commits
     uses: ./.github/workflows/prepare.yml
     with:
@@ -107,12 +107,12 @@ jobs:
       anykernel_commit: ${{ needs.fetch-commits.outputs.anykernel_commit }}
       patches_commit: ${{ needs.fetch-commits.outputs.patches_commit }}
       susfs_commit: ${{ needs.fetch-commits.outputs.susfs_commit }}
-      feature_set: ${{ inputs.feature_set || 'KSUN+SUSFS+BBG' }}
+      feature_set: ${{ inputs.feature_set || 'ALL' }}
       variant: ${{ inputs.variant || 'Normal' }}
     secrets: inherit
 
   build-a14-5-15:
-    if: ${{ inputs.kernel_build_version == 'all' || inputs.kernel_build_version == 'a14-5-15' }}
+    if: ${{ inputs.kernel_build_version == 'All' || inputs.kernel_build_version == 'a14-5-15' }}
     needs: fetch-commits
     uses: ./.github/workflows/prepare.yml
     with:
@@ -121,12 +121,12 @@ jobs:
       anykernel_commit: ${{ needs.fetch-commits.outputs.anykernel_commit }}
       patches_commit: ${{ needs.fetch-commits.outputs.patches_commit }}
       susfs_commit: ${{ needs.fetch-commits.outputs.susfs_commit }}
-      feature_set: ${{ inputs.feature_set || 'KSUN+SUSFS+BBG' }}
+      feature_set: ${{ inputs.feature_set || 'ALL' }}
       variant: ${{ inputs.variant || 'Normal' }}
     secrets: inherit
 
   build-a14-6-1:
-    if: ${{ inputs.kernel_build_version == 'all' || inputs.kernel_build_version == 'a14-6-1' }}
+    if: ${{ inputs.kernel_build_version == 'All' || inputs.kernel_build_version == 'a14-6-1' }}
     needs: fetch-commits
     uses: ./.github/workflows/prepare.yml
     with:
@@ -135,12 +135,12 @@ jobs:
       anykernel_commit: ${{ needs.fetch-commits.outputs.anykernel_commit }}
       patches_commit: ${{ needs.fetch-commits.outputs.patches_commit }}
       susfs_commit: ${{ needs.fetch-commits.outputs.susfs_commit }}
-      feature_set: ${{ inputs.feature_set || 'KSUN+SUSFS+BBG' }}
+      feature_set: ${{ inputs.feature_set || 'ALL' }}
       variant: ${{ inputs.variant || 'Normal' }}
     secrets: inherit
 
   build-a15-6-6:
-    if: ${{ inputs.kernel_build_version == 'all' || inputs.kernel_build_version == 'a15-6-6' }}
+    if: ${{ inputs.kernel_build_version == 'All' || inputs.kernel_build_version == 'a15-6-6' }}
     needs: fetch-commits
     uses: ./.github/workflows/prepare.yml
     with:
@@ -149,12 +149,12 @@ jobs:
       anykernel_commit: ${{ needs.fetch-commits.outputs.anykernel_commit }}
       patches_commit: ${{ needs.fetch-commits.outputs.patches_commit }}
       susfs_commit: ${{ needs.fetch-commits.outputs.susfs_commit }}
-      feature_set: ${{ inputs.feature_set || 'KSUN+SUSFS+BBG' }}
+      feature_set: ${{ inputs.feature_set || 'ALL' }}
       variant: ${{ inputs.variant || 'Normal' }}
     secrets: inherit
 
   build-a16-6-12:
-    if: ${{ inputs.kernel_build_version == 'all' || inputs.kernel_build_version == 'a16-6-12' }}
+    if: ${{ inputs.kernel_build_version == 'All' || inputs.kernel_build_version == 'a16-6-12' }}
     needs: fetch-commits
     uses: ./.github/workflows/prepare.yml
     with:
@@ -163,7 +163,7 @@ jobs:
       anykernel_commit: ${{ needs.fetch-commits.outputs.anykernel_commit }}
       patches_commit: ${{ needs.fetch-commits.outputs.patches_commit }}
       susfs_commit: ${{ needs.fetch-commits.outputs.susfs_commit }}
-      feature_set: ${{ inputs.feature_set || 'KSUN+SUSFS+BBG' }}
+      feature_set: ${{ inputs.feature_set || 'ALL' }}
       variant: ${{ inputs.variant || 'Normal' }}
     secrets: inherit