Skip to content

Commit 3a9043d

Browse files
committed
switch condition - empty string evaluates to false
1 parent 99cfe2f commit 3a9043d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
if [[ test == "${{ inputs.pypi-index }}" ]]; then
7979
ci_env=pypi-test
8080
elif [[ prod == "${{ inputs.pypi-index }}" ]]; then
81-
ci_env=pypi-prod${{ inputs.stable-version != '' && '' || '-nightly' }}
81+
ci_env=pypi-prod${{ inputs.stable-version == '' && '-nightly' || '' }}
8282
else
8383
echo "::error::Invalid value for inputs.pypi-index: ${{ inputs.pypi-index }}"
8484
exit 1

0 commit comments

Comments
 (0)