Skip to content

Commit 381fdfb

Browse files
authored
PYTHON-5047 Fix dry run logic in releases yet again (#323)
1 parent 9cf90a8 commit 381fdfb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
required: true
99
following_version:
1010
description: "The post (dev) version to set"
11-
required: true
1211
dry_run:
1312
description: "Dry Run?"
1413
default: false
@@ -23,7 +22,9 @@ env:
2322
SILK_ASSET_GROUP: motor
2423
EVERGREEN_PROJECT: motor
2524
# Constant
26-
DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || 'true' }}
25+
# inputs will be empty on a scheduled run. so, we only set dry_run
26+
# to 'false' when the input is set to 'false'.
27+
DRY_RUN: ${{ ! contains(inputs.dry_run, 'false') }}
2728
FOLLOWING_VERSION: ${{ inputs.following_version || '' }}
2829
VERSION: ${{ inputs.version || '10.10.10.10' }}
2930

0 commit comments

Comments
 (0)