From 2513444ad01063727a75793ae81b74b901661ccc Mon Sep 17 00:00:00 2001 From: jandroav Date: Mon, 10 Jun 2024 10:04:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(aws-weekly.yml):=20Update=20wor?= =?UTF-8?q?kflow=20to=20conditionally=20set=20database=20variables=20based?= =?UTF-8?q?=20on=20the=20GitHub=20event=20name=20to=20improve=20workflow?= =?UTF-8?q?=20flexibility=20and=20automation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/aws-weekly.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/aws-weekly.yml b/.github/workflows/aws-weekly.yml index 4725cd976..6dacc2347 100644 --- a/.github/workflows/aws-weekly.yml +++ b/.github/workflows/aws-weekly.yml @@ -41,13 +41,13 @@ jobs: secrets: inherit with: deploy: true - aws_postgresql: ${{ contains(inputs.databases, 'postgresql:12') || contains(inputs.databases, 'postgresql:13') || contains(inputs.databases, 'postgresql:14')}} - aws_oracle: ${{ contains(inputs.databases, 'oracle') }} - aws_mariadb: ${{ contains(inputs.databases, 'mariadb') }} - aws_aurora_mysql: ${{ contains(inputs.databases, 'mysql:aurora') }} - aws_mssql: ${{ contains(inputs.databases, 'mssql') }} - aws_aurora_postgres: ${{ contains(inputs.databases, 'postgresql:aurora') }} - aws_mysql: ${{ contains(inputs.databases, 'mysql:aws') }} + aws_postgresql: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'postgresql:12') || contains(inputs.databases, 'postgresql:13') || contains(inputs.databases, 'postgresql:14')}} + aws_oracle: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'oracle') }} + aws_mariadb: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'mariadb') }} + aws_aurora_mysql: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'mysql:aurora') }} + aws_mssql: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'mssql') }} + aws_aurora_postgres: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'postgresql:aurora') }} + aws_mysql: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'mysql:aws') }} init-mysql: runs-on: ubuntu-latest @@ -316,10 +316,10 @@ jobs: with: destroy: true stack_id: ${{ needs.deploy-ephemeral-cloud-infra.outputs.stack_id }} - aws_postgresql: ${{ contains(inputs.databases, 'postgresql:12') || contains(inputs.databases, 'postgresql:13') || contains(inputs.databases, 'postgresql:14')}} - aws_oracle: ${{ contains(inputs.databases, 'oracle') }} - aws_mariadb: ${{ contains(inputs.databases, 'mariadb') }} - aws_aurora_mysql: ${{ contains(inputs.databases, 'mysql:aurora') }} - aws_mssql: ${{ contains(inputs.databases, 'mssql') }} - aws_aurora_postgres: ${{ contains(inputs.databases, 'postgresql:aurora') }} - aws_mysql: ${{ contains(inputs.databases, 'mysql:aws') }} + aws_postgresql: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'postgresql:12') || contains(inputs.databases, 'postgresql:13') || contains(inputs.databases, 'postgresql:14')}} + aws_oracle: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'oracle') }} + aws_mariadb: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'mariadb') }} + aws_aurora_mysql: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'mysql:aurora') }} + aws_mssql: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'mssql') }} + aws_aurora_postgres: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'postgresql:aurora') }} + aws_mysql: ${{ github.event_name == 'schedule' || contains(inputs.databases, 'mysql:aws') }}