Prechádzať zdrojové kódy

Update build-kernel-release.yml

James McConnell 1 rok pred
rodič
commit
2d21c9e707

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

@@ -120,7 +120,7 @@ jobs:
 
       # Download Artifacts for A12 (Only if A12 Build is successful or input is true or empty)
       - name: Download Artifacts for A12 (Only if A12 Build is successful or skipped)
-        if: ${{ github.event.inputs.build_a12 == 'true' || github.event.inputs.build_a12 == '' }}
+        if: ${{ needs.build-kernel-a12.result == 'success' }}
         uses: actions/download-artifact@v3
         with:
           name: kernel-artifacts-a12
@@ -128,7 +128,7 @@ jobs:
 
 # Download Artifacts for A13 (Only if A13 Build is successful or input is true or empty)
       - name: Download Artifacts for A13 (Only if A13 Build is successful or skipped)
-        if: ${{ github.event.inputs.build_a13 == 'true' || github.event.inputs.build_a13 == '' }}
+        if: ${{ needs.build-kernel-a13.result == 'success' }}
         uses: actions/download-artifact@v3
         with:
           name: kernel-artifacts-a13
@@ -136,7 +136,7 @@ jobs:
 
 # Download Artifacts for A14 (Only if A14 Build is successful or input is true or empty)
       - name: Download Artifacts for A14 (Only if A14 Build is successful or skipped)
-        if: ${{ github.event.inputs.build_a14 == 'true' || github.event.inputs.build_a14 == '' }}
+        if: ${{ needs.build-kernel-a14.result == 'success' }}
         uses: actions/download-artifact@v3
         with:
           name: kernel-artifacts-a14
@@ -155,7 +155,7 @@ jobs:
 
       # Create GitHub Release and upload files if make_release is true
       - name: Create GitHub Release
-        if: ${{ github.event.inputs.make_release == 'true' }}
+        if: ${{ github.event.inputs.make_release == 'true' && needs.build-kernel-a12.result == 'success' && needs.build-kernel-a13.result == 'success' && needs.build-kernel-a14.result == 'success' }}  # Only run if make_release is true and all build jobs succeeded
         uses: softprops/action-gh-release@v1
         with:
           files: ./downloaded-artifacts/*