Skip to content

Commit 9e292e4

Browse files
committed
CI: add input to dispatch workflows, allowing to select beta/stable
1 parent 9a250bd commit 9e292e4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ on:
88
- 'stable-[0-9]+.[0-9]+.[0-9]+'
99
pull_request:
1010
workflow_dispatch:
11+
inputs:
12+
releaseChannel:
13+
description: 'The release channel'
14+
required: true
15+
default: 'stable'
16+
type: choice
17+
options:
18+
- stable
19+
- beta
20+
1121

1222
concurrency:
1323
group: ${{ github.head_ref || github.run_id }}
@@ -104,7 +114,7 @@ jobs:
104114
run: |
105115
New-Item -ItemType Directory "${env:GITHUB_WORKSPACE}/binaries/"
106116
# settings
107-
if ("${{ github.ref_type }}" -ne "tag" ) {
117+
if ("${{ github.ref_type }}" -ne "tag" -or "${{ inputs.releaseChannel }}" -eq "beta" ) {
108118
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set "forceAsserts=true" opencloud/opencloud-desktop
109119
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set "buildBeta=true" opencloud/opencloud-desktop
110120
}

0 commit comments

Comments
 (0)