Skip to content

Commit e467388

Browse files
Cursorcursoragent
andcommitted
Fix boolean comparison in workflow conditions
- Compare to boolean true/false instead of string 'true'/'false' - Fix default value for test_pypi input Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7fa6df0 commit e467388

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
test_pypi:
1111
description: 'Publish to TestPyPI instead of PyPI'
1212
required: false
13-
default: 'false'
13+
default: false
1414
type: boolean
1515

1616
jobs:
@@ -42,7 +42,7 @@ jobs:
4242

4343
publish-to-pypi:
4444
name: Publish to PyPI
45-
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.test_pypi == 'false')
45+
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.test_pypi == false)
4646
needs: build
4747
runs-on: ubuntu-latest
4848

@@ -69,7 +69,7 @@ jobs:
6969

7070
publish-to-testpypi:
7171
name: Publish to TestPyPI
72-
if: github.event_name == 'workflow_dispatch' && inputs.test_pypi == 'true'
72+
if: github.event_name == 'workflow_dispatch' && inputs.test_pypi == true
7373
needs: build
7474
runs-on: ubuntu-latest
7575

0 commit comments

Comments
 (0)