Explorar o código

ci(workflows): make build_bypass required and update default values

Update build_bypass to be a required input across all workflows and change default to false in main.yml
Add always() condition to rej job in main.yml
TheWildJames hai 8 meses
pai
achega
13e162cb10

+ 1 - 2
.github/workflows/build.yml

@@ -28,9 +28,8 @@ on:
         required: false
         type: string
       build_bypass:
-        required: false
+        required: true
         type: boolean
-        default: true
 
 jobs:
   build-gki:

+ 1 - 2
.github/workflows/kernel-a12-5-10.yml

@@ -14,9 +14,8 @@ on:
         required: false
         type: string
       build_bypass:
-        required: false
+        required: true
         type: boolean
-        default: true
 
 jobs:
   build-kernels-a12:

+ 1 - 2
.github/workflows/kernel-a13-5-10.yml

@@ -14,9 +14,8 @@ on:
         required: false
         type: string
       build_bypass:
-        required: false
+        required: true
         type: boolean
-        default: true
 
 jobs:
   build-kernels-a13-5-10:

+ 1 - 2
.github/workflows/kernel-a13-5-15.yml

@@ -14,9 +14,8 @@ on:
         required: false
         type: string
       build_bypass:
-        required: false
+        required: true
         type: boolean
-        default: true
 
 jobs:
   build-kernels-a13-5-15:

+ 1 - 2
.github/workflows/kernel-a14-5-15.yml

@@ -14,9 +14,8 @@ on:
         required: false
         type: string
       build_bypass:
-        required: false
+        required: true
         type: boolean
-        default: true
 
 jobs:
   build-kernels-a14-5-15:

+ 1 - 2
.github/workflows/kernel-a14-6-1.yml

@@ -14,9 +14,8 @@ on:
         required: false
         type: string
       build_bypass:
-        required: false
+        required: true
         type: boolean
-        default: true
 
 jobs:
   build-kernels-a14-6-1:

+ 1 - 2
.github/workflows/kernel-a15-6-6.yml

@@ -14,9 +14,8 @@ on:
         required: false
         type: string
       build_bypass:
-        required: false
+        required: true
         type: boolean
-        default: true
 
 jobs:
   build-kernels-a15:

+ 1 - 2
.github/workflows/kernel-a16-612.yml

@@ -14,9 +14,8 @@ on:
         required: false
         type: string
       build_bypass:
-        required: false
+        required: true
         type: boolean
-        default: true
 
 jobs:
   build-kernels-a16-612:

+ 1 - 2
.github/workflows/kernel-custom.yml

@@ -14,9 +14,8 @@ on:
         required: false
         type: string
       build_bypass:
-        required: false
+        required: true
         type: boolean
-        default: true
 
 jobs:
   build-kernel-custom:

+ 3 - 2
.github/workflows/main.yml

@@ -25,7 +25,8 @@ on:
       build_bypass:
         description: "Build Bypass"
         type: boolean
-        default: true
+        default: false
+        required: true
       # Build Selection
       build_a12_5_10:
         description: "Android 12 - 5.10"
@@ -134,6 +135,7 @@ jobs:
       build_bypass: ${{ inputs.build_bypass }}
 
   rej:
+    if: always()
     runs-on: ubuntu-latest
     needs:
     - build-a12-5-10
@@ -152,7 +154,6 @@ jobs:
         pattern: '*-Normal-Misc'
 
     - name: Process Reject Artifacts
-      if: always()
       run: |
         mkdir -p aio-rejects