Skip to content

Commit

Permalink
Fix conditional execution on populate schema action
Browse files Browse the repository at this point in the history
The populate persistent source schema GitHub action has a
workflow_dispatch trigger, but when you attempt to use it all
actions are immediately skipped.

This makes the changes necessary to enable the workflow_dispatch
trigger to execute the tasks in this workflow.
  • Loading branch information
tlento committed Jan 26, 2024
1 parent 2486b4b commit 6531931
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ env:
jobs:
snowflake-populate:
environment: DW_INTEGRATION_TESTS
if: >
github.event.action == 'workflow_dispatch'
|| (github.event.action == 'labeled' && github.event.label.name == 'Reload Test Data in SQL Engines')
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'Reload Test Data in SQL Engines' }}
name: Snowflake
runs-on: ubuntu-latest
steps:
Expand All @@ -41,9 +39,7 @@ jobs:
redshift-populate:
environment: DW_INTEGRATION_TESTS
name: Redshift
if: >
github.event.action == 'workflow_dispatch'
|| (github.event.action == 'labeled' && github.event.label.name == 'Reload Test Data in SQL Engines')
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'Reload Test Data in SQL Engines' }}
runs-on: ubuntu-latest
steps:
- name: Check-out the repo
Expand All @@ -61,9 +57,7 @@ jobs:
bigquery-populate:
environment: DW_INTEGRATION_TESTS
name: BigQuery
if: >
github.event.action == 'workflow_dispatch'
|| (github.event.action == 'labeled' && github.event.label.name == 'Reload Test Data in SQL Engines')
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'Reload Test Data in SQL Engines' }}
runs-on: ubuntu-latest
steps:
- name: Check-out the repo
Expand All @@ -81,9 +75,7 @@ jobs:
databricks-populate:
environment: DW_INTEGRATION_TESTS
name: Databricks SQL Warehouse
if: >
github.event.action == 'workflow_dispatch'
|| (github.event.action == 'labeled' && github.event.label.name == 'Reload Test Data in SQL Engines')
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'Reload Test Data in SQL Engines' }}
runs-on: ubuntu-latest
steps:
- name: Check-out the repo
Expand Down

0 comments on commit 6531931

Please sign in to comment.