Skip to content

Commit 34ae214

Browse files
authored
PYTHON-5047 Fix dry run logic in releases yet again (#2098)
1 parent 1784e2c commit 34ae214

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release-python.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ env:
2323
SILK_ASSET_GROUP: mongodb-python-driver
2424
EVERGREEN_PROJECT: mongo-python-driver
2525
# Constant
26-
DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || 'true' }}
26+
# inputs will be empty on a scheduled run. so, we only set dry_run
27+
# to 'false' when the input is set to 'false'.
28+
DRY_RUN: ${{ ! contains(inputs.dry_run, 'false') }}
2729
FOLLOWING_VERSION: ${{ inputs.following_version || '' }}
2830
VERSION: ${{ inputs.version || '10.10.10.10' }}
2931

0 commit comments

Comments
 (0)