Просмотр исходного кода

Fix workflow syntax: move conditional logic to if statement and simplify needs section

TheWildJames 10 месяцев назад
Родитель
Сommit
6416c00e32
1 измененных файлов с 8 добавлено и 2 удалено
  1. 8 2
      .github/workflows/main.yml

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

@@ -95,8 +95,14 @@ jobs:
 
   release:
     runs-on: ubuntu-latest
-    if: inputs.build_selection == 'All' && inputs.release_type != 'Actions'
-    needs: ${{ (inputs.release_type != 'Release (No Artifacts)') && fromJSON('["build-a12-5-10", "build-a13-5-10", "build-a13-5-15", "build-a14-5-15", "build-a14-6-1", "build-a15-6-6"]') || fromJSON('[]') }}
+    if: inputs.build_selection == 'All' && inputs.release_type != 'Actions' && (inputs.release_type == 'Release (No Artifacts)' || success())
+    needs:
+      - build-a12-5-10
+      - build-a13-5-10
+      - build-a13-5-15
+      - build-a14-5-15
+      - build-a14-6-1
+      - build-a15-6-6
 
     env:
       GH_TOKEN: ${{ github.token }}