From 0df3ad05571c61597de2d95fad076645618410c1 Mon Sep 17 00:00:00 2001 From: dixyes Date: Sun, 1 Oct 2023 23:32:33 +0800 Subject: [PATCH] Use boolean --- .github/workflows/linux-new.yml | 9 +++++---- .github/workflows/macos-new.yml | 9 +++++---- .github/workflows/windows-new.yml | 9 +++++---- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/linux-new.yml b/.github/workflows/linux-new.yml index a8ec79d..bfbbaec 100644 --- a/.github/workflows/linux-new.yml +++ b/.github/workflows/linux-new.yml @@ -34,7 +34,8 @@ on: uploadRelease: description: "upload binaries to releases, otherwise only upload via artifact" required: false - default: "" + type: boolean + default: false workflow_call: inputs: flavors: @@ -75,8 +76,8 @@ on: uploadRelease: description: "upload binaries to releases, otherwise only upload via artifact" required: false - type: string - default: "" + type: boolean + default: false jobs: gen-jobs: @@ -95,7 +96,7 @@ jobs: throw new ErrorException($message, 0, $severity, $file, $line); }); - if (!!'${{ github.event.inputs.uploadRelease }}') { + if (${{ github.event.inputs.uploadRelease }}) { # create github release echo "create release\n"; diff --git a/.github/workflows/macos-new.yml b/.github/workflows/macos-new.yml index 4fe52c6..bf2b1bc 100644 --- a/.github/workflows/macos-new.yml +++ b/.github/workflows/macos-new.yml @@ -30,7 +30,8 @@ on: uploadRelease: description: "upload binaries to releases, otherwise only upload via artifact" required: false - default: "" + type: boolean + default: false workflow_call: inputs: flavors: @@ -66,8 +67,8 @@ on: uploadRelease: description: "upload binaries to releases, otherwise only upload via artifact" required: false - type: string - default: "" + type: boolean + default: false jobs: gen-jobs: @@ -86,7 +87,7 @@ jobs: throw new ErrorException($message, 0, $severity, $file, $line); }); - if (!!'${{ github.event.inputs.uploadRelease }}') { + if (${{ github.event.inputs.uploadRelease }}) { # create github release echo "create release\n"; diff --git a/.github/workflows/windows-new.yml b/.github/workflows/windows-new.yml index decd357..1fe53df 100644 --- a/.github/workflows/windows-new.yml +++ b/.github/workflows/windows-new.yml @@ -30,7 +30,8 @@ on: uploadRelease: description: "upload binaries to releases, otherwise only upload via artifact" required: false - default: "" + type: boolean + default: false workflow_call: inputs: flavors: @@ -66,8 +67,8 @@ on: uploadRelease: description: "upload binaries to releases, otherwise only upload via artifact" required: false - type: string - default: "" + type: boolean + default: false jobs: gen-jobs: @@ -86,7 +87,7 @@ jobs: throw new ErrorException($message, 0, $severity, $file, $line); }); - if (!!'${{ github.event.inputs.uploadRelease }}') { + if (${{ github.event.inputs.uploadRelease }}) { # create github release echo "create release\n";