From bbddc94a7263b7472e4453056dbc4ce09d15ada2 Mon Sep 17 00:00:00 2001
From: Baptiste Augrain <daiyam@zokugun.org>
Date: Wed, 17 Aug 2022 06:23:19 +0200
Subject: [PATCH] ci: use directly boolean input (#1207)

---
 .github/workflows/linux.yml   | 5 +----
 .github/workflows/macos.yml   | 5 +----
 .github/workflows/windows.yml | 5 +----
 check_tags.sh                 | 2 +-
 4 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index a74d810..c84a722 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -4,11 +4,8 @@ on:
   workflow_dispatch:
     inputs:
       new_release:
-        type: choice
+        type: boolean
         description: Force new Release
-        options:
-        - no
-        - yes
   schedule:
     - cron: '0 0 * * *'
   push:
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 9867640..a9b32c3 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -4,11 +4,8 @@ on:
   workflow_dispatch:
     inputs:
       new_release:
-        type: choice
+        type: boolean
         description: Force new Release
-        options:
-        - no
-        - yes
   schedule:
     - cron: '0 0 * * *'
   push:
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 95629e7..5765149 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -4,11 +4,8 @@ on:
   workflow_dispatch:
     inputs:
       new_release:
-        type: choice
+        type: boolean
         description: Force new Release
-        options:
-        - no
-        - yes
   schedule:
     - cron: '0 0 * * *'
   push:
diff --git a/check_tags.sh b/check_tags.sh
index e0bbcf8..96ef36e 100755
--- a/check_tags.sh
+++ b/check_tags.sh
@@ -19,7 +19,7 @@ if [[ "${LATEST_VERSION}" =~ ^([0-9]+\.[0-9]+\.[0-9]+) ]]; then
     export SHOULD_BUILD="yes"
 
     VSCODIUM_ASSETS="null"
-  elif [[ "${NEW_RELEASE}" == "yes" ]]; then
+  elif [[ "${NEW_RELEASE}" == "true" ]]; then
     echo "New release build"
     export SHOULD_BUILD="yes"