Skip to content

Commit f1a8af1

Browse files
committed
PYTHON-5047 Fix dry run logic in releases yet again (#2098)
(cherry picked from commit 34ae214)
1 parent d030130 commit f1a8af1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: .github/workflows/release-python.yml

+3-1
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)