Bladeren bron

ci: add new flag [skip ci]

Baptiste Augrain 1 jaar geleden
bovenliggende
commit
33596505a6
2 gewijzigde bestanden met toevoegingen van 8 en 2 verwijderingen
  1. 4 1
      .github/workflows/insider-spearhead.yml
  2. 4 1
      .github/workflows/stable-spearhead.yml

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

@@ -9,6 +9,9 @@ on:
       force_dispatch:
         type: boolean
         description: Force dispatch
+      dont_update:
+        type: boolean
+        description: Don't update VSCode
   schedule:
     - cron: '0 7 * * *'
 
@@ -55,7 +58,7 @@ jobs:
         env:
           GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
           GITHUB_USERNAME: ${{ github.repository_owner }}
-        if: env.SHOULD_BUILD == 'yes'
+        if: env.SHOULD_BUILD == 'yes' && github.event.inputs.dont_update != 'true'
 
       - name: Prepare source
         run: ./prepare_src.sh

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

@@ -9,6 +9,9 @@ on:
       force_dispatch:
         type: boolean
         description: Force dispatch
+      dont_update:
+        type: boolean
+        description: Don't update VSCode
   schedule:
     - cron: '0 18 * * *'
 
@@ -53,7 +56,7 @@ jobs:
         env:
           GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
           GITHUB_USERNAME: ${{ github.repository_owner }}
-        if: env.SHOULD_BUILD == 'yes'
+        if: env.SHOULD_BUILD == 'yes' && github.event.inputs.dont_update != 'true'
 
       - name: Prepare source
         run: ./prepare_src.sh