Przeglądaj źródła

Remove 'Release (No Artifacts)' option and clean all related conditions in main.yml

TheWildJames 10 miesięcy temu
rodzic
commit
0ad739eb09
1 zmienionych plików z 7 dodań i 13 usunięć
  1. 7 13
      .github/workflows/main.yml

+ 7 - 13
.github/workflows/main.yml

@@ -25,7 +25,6 @@ on:
           - Actions
           - Pre-Release
           - Release
-          - Release (No Artifacts)
         default: Actions
       build_selection:
         description: "Choose which kernels to build"
@@ -44,44 +43,44 @@ on:
 jobs:
 
   build-a12-5-10:
-    if: (inputs.build_selection == 'All' || inputs.build_selection == 'Android12-5.10') && inputs.release_type != 'Release (No Artifacts)'
+    if: (inputs.build_selection == 'All' || inputs.build_selection == 'Android12-5.10')
     uses: ./.github/workflows/kernel-a12-5-10.yml
     secrets: inherit
 
 
   build-a13-5-10:
-    if: (inputs.build_selection == 'All' || inputs.build_selection == 'Android13-5.10') && inputs.release_type != 'Release (No Artifacts)'
+    if: (inputs.build_selection == 'All' || inputs.build_selection == 'Android13-5.10')
     uses: ./.github/workflows/kernel-a13-5-10.yml
     secrets: inherit
 
 
   build-a13-5-15:
-    if: (inputs.build_selection == 'All' || inputs.build_selection == 'Android13-5.15') && inputs.release_type != 'Release (No Artifacts)'
+    if: (inputs.build_selection == 'All' || inputs.build_selection == 'Android13-5.15')
     uses: ./.github/workflows/kernel-a13-5-15.yml
     secrets: inherit
 
 
   build-a14-5-15:
-    if: (inputs.build_selection == 'All' || inputs.build_selection == 'Android14-5.15') && inputs.release_type != 'Release (No Artifacts)'
+    if: (inputs.build_selection == 'All' || inputs.build_selection == 'Android14-5.15')
     uses: ./.github/workflows/kernel-a14-5-15.yml
     secrets: inherit
 
 
   build-a14-6-1:
-    if: (inputs.build_selection == 'All' || inputs.build_selection == 'Android14-6.1') && inputs.release_type != 'Release (No Artifacts)'
+    if: (inputs.build_selection == 'All' || inputs.build_selection == 'Android14-6.1')
     uses: ./.github/workflows/kernel-a14-6-1.yml
     secrets: inherit
 
 
   build-a15-6-6:
-    if: (inputs.build_selection == 'All' || inputs.build_selection == 'Android15-6.6') && inputs.release_type != 'Release (No Artifacts)'
+    if: (inputs.build_selection == 'All' || inputs.build_selection == 'Android15-6.6')
     uses: ./.github/workflows/kernel-a15-6-6.yml
     secrets: inherit
 
 
   release:
     runs-on: ubuntu-latest
-    if: (inputs.release_type == 'Release (No Artifacts)' || inputs.release_type != 'Actions')
+    if: inputs.release_type != 'Actions'
     needs:
       - build-a12-5-10
       - build-a13-5-10
@@ -112,7 +111,6 @@ jobs:
             echo "NEW_TAG=${NEW_TAG}" >> $GITHUB_ENV
 
       - name: Download Artifacts
-        if: inputs.release_type != 'Release (No Artifacts)'
         uses: actions/download-artifact@v5
         with:
           path: ./downloaded-artifacts
@@ -181,7 +179,6 @@ jobs:
           body_path: release_body.md
 
       - name: Upload Release Assets
-        if: inputs.release_type != 'Release (No Artifacts)'
         run: |
           for dir in ./downloaded-artifacts/*/; do
             # Check if this is an AnyKernel3 artifact directory
@@ -196,7 +193,6 @@ jobs:
           done
 
       - name: Display Files Uploaded
-        if: inputs.release_type != 'Release (No Artifacts)'
         run: |
           echo "GitHub release created with the following files:"
           ls ./downloaded-artifacts/**/*
@@ -207,8 +203,6 @@ jobs:
           RELEASE_TYPE_TEXT=""
           if [ "${{ inputs.release_type }}" == "Pre-Release" ]; then
             RELEASE_TYPE_TEXT="🧪 *Pre-Release*"
-          elif [ "${{ inputs.release_type }}" == "Release (No Artifacts)" ]; then
-            RELEASE_TYPE_TEXT="🚀 *Release*"
           else
             RELEASE_TYPE_TEXT="🚀 *Release*"
           fi