浏览代码

ci: add single event to dispatch all build [skip ci]

Baptiste Augrain 1 年之前
父节点
当前提交
8bb53bf173

+ 2 - 0
.github/workflows/stable-linux.yml

@@ -9,6 +9,8 @@ on:
       test_asset_builder:
         type: boolean
         description: Test the assets builder
+  repository_dispatch:
+    types: [stable]
   push:
     branches: [ master ]
     paths-ignore:

+ 2 - 0
.github/workflows/stable-macos.yml

@@ -9,6 +9,8 @@ on:
       test_asset_builder:
         type: boolean
         description: Test the assets builder
+  repository_dispatch:
+    types: [stable]
   push:
     branches: [ master ]
     paths-ignore:

+ 8 - 17
.github/workflows/stable-spearhead.yml

@@ -6,6 +6,9 @@ on:
       new_release:
         type: boolean
         description: Force new Release
+      force_dispatch:
+        type: boolean
+        description: Force dispatch
   schedule:
     - cron: '0 18 * * *'
 
@@ -69,31 +72,19 @@ jobs:
           GITHUB_USERNAME: ${{ github.repository_owner }}
         if: env.SHOULD_BUILD == 'yes'
 
-      - name: Prepare assets
+      - name: Prepare source
         run: ./prepare_src.sh
         if: env.SHOULD_BUILD == 'yes'
 
-      - name: Release
+      - name: Release source
         env:
           GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
           GITHUB_USERNAME: ${{ github.repository_owner }}
         run: ./release.sh
         if: env.SHOULD_BUILD == 'yes'
 
-      - name: Dispatch Linux build
-        uses: peter-evans/repository-dispatch@v2
-        with:
-          event-type: 'stable-linux'
-        if: env.SHOULD_BUILD == 'yes'
-
-      - name: Dispatch Windows build
+      - name: Dispatch builds
         uses: peter-evans/repository-dispatch@v2
         with:
-          event-type: 'stable-windows'
-        if: env.SHOULD_BUILD == 'yes'
-
-      - name: Dispatch macOS build
-        uses: peter-evans/repository-dispatch@v2
-        with:
-          event-type: 'stable-macos'
-        if: env.SHOULD_BUILD == 'yes'
+          event-type: 'stable'
+        if: env.SHOULD_BUILD == 'yes' || github.event.inputs.force_dispatch == 'true'

+ 2 - 0
.github/workflows/stable-windows.yml

@@ -9,6 +9,8 @@ on:
       test_asset_builder:
         type: boolean
         description: Test the assets builder
+  repository_dispatch:
+    types: [stable]
   push:
     branches: [ master ]
     paths-ignore: