From 4c3a784f7c7f4c3cc64596e9677a9134f9a2ec35 Mon Sep 17 00:00:00 2001 From: Imri Paran Date: Wed, 30 Oct 2024 08:37:56 +0100 Subject: [PATCH] MINOR: fix debug resolution in e2e python github workflow (#18437) * fix debug default * fixed expression * test inverted expression * test inverted expression * added description * added logging for inputs debug, debug * fixed debug condition * added github ref * added github ref --- .github/workflows/py-cli-e2e-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/py-cli-e2e-tests.yml b/.github/workflows/py-cli-e2e-tests.yml index af0e8a79953..7d2fc1ff343 100644 --- a/.github/workflows/py-cli-e2e-tests.yml +++ b/.github/workflows/py-cli-e2e-tests.yml @@ -20,12 +20,12 @@ on: required: True default: '["bigquery", "dbt_redshift", "metabase", "mssql", "mysql", "redash", "snowflake", "tableau", "powerbi", "vertica", "python", "redshift", "quicksight", "datalake_s3", "postgres", "oracle", "athena", "bigquery_multiple_project"]' debug: - description: "If Debugging the Pipeline, Slack and Sonar events won't be triggered [default, true or false]" + description: "If Debugging the Pipeline, Slack and Sonar events won't be triggered [default, true or false]. Default will trigger only on main branch." required: False default: "default" env: - DEBUG: ${{ inputs.debug == 'true' || (inputs.debug == 'default' && github.ref != 'refs/heads/main') }}' }} + DEBUG: "${{ ((inputs.debug == 'default' && github.ref == 'refs/heads/main') && 'true') || (inputs.debug != 'default' && inputs.debug) || 'false' }}" permissions: id-token: write @@ -38,7 +38,7 @@ jobs: outputs: DEBUG: ${{ env.DEBUG }} steps: - - run: echo "null" + - run: echo "INPUTS_DEBUG=${{ inputs.debug }}, GITHUB_REF=${{ github.ref }}, DEBUG=$DEBUG" py-cli-e2e-tests: runs-on: ubuntu-latest