Skip to content

Commit 4443569

Browse files
committed
fix passing booleans
1 parent 1d747f8 commit 4443569

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

.github/workflows/acceptance-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ jobs:
125125
test_group: ${{ inputs.test_group }}
126126
test_name: ${{ inputs.test_name }}
127127
ref: ${{ inputs.ref }}
128-
reduced_tests: ${{ inputs.reduced_tests }}
129-
use_sa: ${{ inputs.use_sa }}
130-
send_notification: ${{ inputs.send_notification }}
128+
reduced_tests: ${{ inputs.reduced_tests == true }}
129+
use_sa: ${{ inputs.use_sa == true }}
130+
send_notification: ${{ inputs.send_notification == true }}
131131
mongodb_atlas_org_id: ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_ORG_ID_CLOUD_QA || vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV }}
132132
mongodb_atlas_base_url: ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_BASE_URL_QA || vars.MONGODB_ATLAS_BASE_URL }}
133133
mongodb_realm_base_url: ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_REALM_BASE_URL_QA || vars.MONGODB_REALM_BASE_URL }}

.github/workflows/code-health.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,3 @@ jobs:
9292
uses: ./.github/workflows/acceptance-tests.yml
9393
with:
9494
reduced_tests: true
95-
use_sa: false
96-
send_notification: false

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ jobs:
125125
with:
126126
atlas_cloud_env: "qa"
127127
ref: ${{ inputs.version_number }}
128-
use_sa: false
129-
send_notification: false
130128

131129
release:
132130
runs-on: ubuntu-latest

.github/workflows/test-suite.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ jobs:
6363
terraform_matrix: ${{ inputs.terraform_matrix || env.schedule_terraform_matrix }}
6464
provider_matrix: ${{ inputs.provider_matrix || env.schedule_provider_matrix }}
6565
is_sun: ${{ steps.set_day.outputs.DAY == 'Sun' }}
66-
use_sa: ${{ (inputs.use_sa != null && inputs.use_sa) || (inputs.use_sa == null && (steps.set_day.outputs.DAY == 'Tue' || steps.set_day.outputs.DAY == 'Thu' || steps.set_day.outputs.DAY == 'Sat')) }}
67-
send_notification: ${{ inputs.send_notification == null || inputs.send_notification }} # scheduled workflows (unset input) send notification
66+
use_sa: ${{ inputs.use_sa == true || (inputs.use_sa == null && (steps.set_day.outputs.DAY == 'Tue' || steps.set_day.outputs.DAY == 'Thu' || steps.set_day.outputs.DAY == 'Sat')) }}
67+
send_notification: ${{ inputs.send_notification == null || inputs.send_notification == true }} # scheduled workflows (unset input) send notification
6868
steps:
6969
- name: set day
7070
id: set_day
@@ -108,7 +108,7 @@ jobs:
108108
terraform_version: ${{ matrix.terraform_version }}
109109
provider_version: ${{ matrix.provider_version }}
110110
atlas_cloud_env: ${{ inputs.atlas_cloud_env || needs.variables.outputs.is_sun && 'qa' || '' }} # Run against QA on Sundays
111-
use_sa: ${{ needs.variables.outputs.use_sa }}
111+
use_sa: ${{ needs.variables.outputs.use_sa }}
112112
send_notification: ${{ needs.variables.outputs.send_notification }}
113113

114114
slack-notification:

0 commit comments

Comments
 (0)