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

This commit is contained in:
Baptiste Augrain 2024-02-17 01:35:18 +01:00
parent 969b50bb4d
commit 53b09bb494

View file

@ -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')