Browse Source

ci: add input to force new release (#1197)

Baptiste Augrain 2 years ago
parent
commit
79cdcd61bf
3 changed files with 24 additions and 3 deletions
  1. 8 1
      .github/workflows/linux.yml
  2. 8 1
      .github/workflows/macos.yml
  3. 8 1
      .github/workflows/windows.yml

+ 8 - 1
.github/workflows/linux.yml

@@ -2,6 +2,13 @@ name: linux_build
 
 
 on:
 on:
   workflow_dispatch:
   workflow_dispatch:
+    inputs:
+      new_release:
+        type: choice
+        description: Force new Release
+        options:
+        - no
+        - yes
   schedule:
   schedule:
     - cron: '0 0 * * *'
     - cron: '0 0 * * *'
   push:
   push:
@@ -54,7 +61,7 @@ jobs:
       - name: Check existing VSCodium tags/releases
       - name: Check existing VSCodium tags/releases
         env:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-          NEW_RELEASE: ${{ secrets.NEW_RELEASE }}
+          NEW_RELEASE: ${{ github.event.inputs.new_release }}
         run: ./check_tags.sh
         run: ./check_tags.sh
         if: env.SHOULD_DEPLOY == 'yes'
         if: env.SHOULD_DEPLOY == 'yes'
 
 

+ 8 - 1
.github/workflows/macos.yml

@@ -2,6 +2,13 @@ name: macos_build
 
 
 on:
 on:
   workflow_dispatch:
   workflow_dispatch:
+    inputs:
+      new_release:
+        type: choice
+        description: Force new Release
+        options:
+        - no
+        - yes
   schedule:
   schedule:
     - cron: '0 0 * * *'
     - cron: '0 0 * * *'
   push:
   push:
@@ -42,7 +49,7 @@ jobs:
       - name: Check existing VSCodium tags/releases
       - name: Check existing VSCodium tags/releases
         env:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-          NEW_RELEASE: ${{ secrets.NEW_RELEASE }}
+          NEW_RELEASE: ${{ github.event.inputs.new_release }}
         run: . check_tags.sh
         run: . check_tags.sh
         if: env.SHOULD_DEPLOY == 'yes'
         if: env.SHOULD_DEPLOY == 'yes'
 
 

+ 8 - 1
.github/workflows/windows.yml

@@ -2,6 +2,13 @@ name: windows_build
 
 
 on:
 on:
   workflow_dispatch:
   workflow_dispatch:
+    inputs:
+      new_release:
+        type: choice
+        description: Force new Release
+        options:
+        - no
+        - yes
   schedule:
   schedule:
     - cron: '0 0 * * *'
     - cron: '0 0 * * *'
   push:
   push:
@@ -50,7 +57,7 @@ jobs:
       - name: Check existing VSCodium tags/releases
       - name: Check existing VSCodium tags/releases
         env:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-          NEW_RELEASE: ${{ secrets.NEW_RELEASE }}
+          NEW_RELEASE: ${{ github.event.inputs.new_release }}
         run: ./check_tags.sh
         run: ./check_tags.sh
         if: env.SHOULD_DEPLOY == 'yes'
         if: env.SHOULD_DEPLOY == 'yes'