Skip to content

Commit 3a9580a

Browse files
committed
Change back to choice approach
1 parent 3f1fc64 commit 3a9580a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/cpp_extra.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,13 @@ on:
7676
workflow_dispatch:
7777
inputs:
7878
odbc_release_step:
79-
description: 'ODBC MSI release step'
79+
description: 'Which ODBC release step to run'
8080
required: true
81-
default: false
82-
type: boolean
83-
81+
default: 'msi'
82+
type: choice
83+
options:
84+
- dll
85+
- msi
8486
concurrency:
8587
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
8688
cancel-in-progress: true
@@ -578,9 +580,8 @@ jobs:
578580
runs-on: windows-2022
579581
if: >-
580582
${{
581-
startsWith(github.ref_name, 'apache-arrow-') &&
582-
contains(github.ref_name, '-rc') &&
583-
!inputs.odbc_release_step
583+
(startsWith(github.ref_name, 'apache-arrow-') && contains(github.ref_name, '-rc')) ||
584+
(!inputs.odbc_upload || inputs.odbc_upload == 'dll')
584585
}}
585586
timeout-minutes: 240
586587
permissions:
@@ -644,7 +645,7 @@ jobs:
644645
needs: check-labels
645646
name: ODBC Windows Build & Upload Unsigned MSI
646647
runs-on: windows-2022
647-
if: inputs.odbc_release_step
648+
if: inputs.odbc_release_step == 'msi'
648649
timeout-minutes: 240
649650
permissions:
650651
# Upload to GitHub Release

0 commit comments

Comments
 (0)