Skip to content

Commit 947be89

Browse files
workflows: Refactor input handling in build_release.yml to use 'type' instead of 'release'
1 parent 7f0836a commit 947be89

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/build_release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: Build PowerShell Wrapper
22
on:
33
workflow_call:
44
inputs:
5-
release:
5+
type:
66
required: true
7-
type: boolean
8-
default: false
7+
type: string
8+
default: 'false'
99
permissions: {}
1010

1111
jobs:
1212
wrapper_build:
13-
if: ${{ github.event.inputs.release == false }}
13+
if: github.event.inputs.type == 'ci'
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout Repository
@@ -34,7 +34,7 @@ jobs:
3434
name: powershell64-wrapper
3535
path: "powershell64.exe"
3636
release_build:
37-
if: ${{ github.event.inputs.release == true }}
37+
if: github.event.inputs.type == 'release'
3838
runs-on: ubuntu-latest
3939
steps:
4040
- name: Checkout Repository

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ jobs:
55
ci_run:
66
uses: ProjectSynchro/powershell-wrapper-for-wine/.github/workflows/build_release.yml@master
77
with:
8-
release: false
8+
type: 'ci'

.github/workflows/create_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build_release:
1010
uses: ProjectSynchro/powershell-wrapper-for-wine/.github/workflows/build_release.yml@master
1111
with:
12-
release: true
12+
type: 'release'
1313
create_release:
1414
permissions:
1515
contents: write

0 commit comments

Comments
 (0)