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
This commit is contained in:
Imri Paran 2024-10-30 08:37:56 +01:00 committed by GitHub
parent fe4c63c210
commit 4c3a784f7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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