Browse Source

ci(insider): add flag to disable dispatchs [skip ci]

Baptiste Augrain 1 year ago
parent
commit
53b09bb494
1 changed files with 4 additions and 1 deletions
  1. 4 1
      .github/workflows/insider-spearhead.yml

+ 4 - 1
.github/workflows/insider-spearhead.yml

@@ -12,6 +12,9 @@ on:
       dont_update:
         type: boolean
         description: Don't update VSCode
+      dont_dispatch:
+        type: boolean
+        description: Disable dispatch
   schedule:
     - cron: '0 7 * * *'
 
@@ -75,4 +78,4 @@ jobs:
         uses: peter-evans/repository-dispatch@v3
         with:
           event-type: 'insider'
-        if: env.SHOULD_BUILD == 'yes' || github.event.inputs.force_dispatch == 'true'
+        if: github.event.inputs.dont_dispatch != 'true' && (env.SHOULD_BUILD == 'yes' || github.event.inputs.force_dispatch == 'true')