Skip to content

Commit

Permalink
Use boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed Oct 1, 2023
1 parent ba3b1cc commit 0df3ad0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/linux-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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";
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/macos-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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";
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/windows-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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";
Expand Down

0 comments on commit 0df3ad0

Please sign in to comment.