From b227c60016c1e3712d6bce0fe14724d305f6ca4f Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 2 Apr 2024 19:38:54 +0200 Subject: [PATCH] allow workflows to run on forks if so labelled --- .github/workflows/test_dbt_cloud.yml | 2 +- .github/workflows/test_dbt_runner.yml | 2 +- .github/workflows/test_destination_athena.yml | 2 +- .github/workflows/test_destination_athena_iceberg.yml | 2 +- .github/workflows/test_destination_bigquery.yml | 2 +- .github/workflows/test_destination_databricks.yml | 2 +- .github/workflows/test_destination_mssql.yml | 2 +- .github/workflows/test_destination_qdrant.yml | 2 +- .github/workflows/test_destination_snowflake.yml | 2 +- .github/workflows/test_destination_synapse.yml | 2 +- .github/workflows/test_destinations.yml | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test_dbt_cloud.yml b/.github/workflows/test_dbt_cloud.yml index 3c7bbddb94..0f5c169e6e 100644 --- a/.github/workflows/test_dbt_cloud.yml +++ b/.github/workflows/test_dbt_cloud.yml @@ -24,7 +24,7 @@ jobs: get_docs_changes: name: docs changes uses: ./.github/workflows/get_docs_changes.yml - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}} run_dbt_cloud: name: test diff --git a/.github/workflows/test_dbt_runner.yml b/.github/workflows/test_dbt_runner.yml index 0ed90d9d3d..ae26a5d852 100644 --- a/.github/workflows/test_dbt_runner.yml +++ b/.github/workflows/test_dbt_runner.yml @@ -21,7 +21,7 @@ jobs: get_docs_changes: name: docs changes uses: ./.github/workflows/get_docs_changes.yml - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}} run_dbt: name: test diff --git a/.github/workflows/test_destination_athena.yml b/.github/workflows/test_destination_athena.yml index d6833ce41e..75048f1e8d 100644 --- a/.github/workflows/test_destination_athena.yml +++ b/.github/workflows/test_destination_athena.yml @@ -27,7 +27,7 @@ jobs: name: docs changes uses: ./.github/workflows/get_docs_changes.yml # Tests that require credentials do not run in forks - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}} run_loader: name: test diff --git a/.github/workflows/test_destination_athena_iceberg.yml b/.github/workflows/test_destination_athena_iceberg.yml index 8a66e12e63..c41b9290b0 100644 --- a/.github/workflows/test_destination_athena_iceberg.yml +++ b/.github/workflows/test_destination_athena_iceberg.yml @@ -27,7 +27,7 @@ jobs: name: docs changes uses: ./.github/workflows/get_docs_changes.yml # Tests that require credentials do not run in forks - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}} run_loader: name: test diff --git a/.github/workflows/test_destination_bigquery.yml b/.github/workflows/test_destination_bigquery.yml index 19124f16b7..12d460b7aa 100644 --- a/.github/workflows/test_destination_bigquery.yml +++ b/.github/workflows/test_destination_bigquery.yml @@ -25,7 +25,7 @@ jobs: get_docs_changes: name: docs changes uses: ./.github/workflows/get_docs_changes.yml - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}} run_loader: name: test diff --git a/.github/workflows/test_destination_databricks.yml b/.github/workflows/test_destination_databricks.yml index 279ee72b1d..6c788a92ba 100644 --- a/.github/workflows/test_destination_databricks.yml +++ b/.github/workflows/test_destination_databricks.yml @@ -25,7 +25,7 @@ jobs: get_docs_changes: name: docs changes uses: ./.github/workflows/get_docs_changes.yml - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}} run_loader: name: test diff --git a/.github/workflows/test_destination_mssql.yml b/.github/workflows/test_destination_mssql.yml index 07c9767fa8..5105ab9250 100644 --- a/.github/workflows/test_destination_mssql.yml +++ b/.github/workflows/test_destination_mssql.yml @@ -26,7 +26,7 @@ jobs: get_docs_changes: name: docs changes uses: ./.github/workflows/get_docs_changes.yml - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}} run_loader: name: test diff --git a/.github/workflows/test_destination_qdrant.yml b/.github/workflows/test_destination_qdrant.yml index ddbc1f0ac7..5fbd7c0c3b 100644 --- a/.github/workflows/test_destination_qdrant.yml +++ b/.github/workflows/test_destination_qdrant.yml @@ -24,7 +24,7 @@ jobs: get_docs_changes: name: docs changes uses: ./.github/workflows/get_docs_changes.yml - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}} run_loader: name: test ß diff --git a/.github/workflows/test_destination_snowflake.yml b/.github/workflows/test_destination_snowflake.yml index 756ce17649..7668a8449b 100644 --- a/.github/workflows/test_destination_snowflake.yml +++ b/.github/workflows/test_destination_snowflake.yml @@ -25,7 +25,7 @@ jobs: get_docs_changes: name: docs changes uses: ./.github/workflows/get_docs_changes.yml - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}} run_loader: name: test diff --git a/.github/workflows/test_destination_synapse.yml b/.github/workflows/test_destination_synapse.yml index 58d71cb79c..a1901e4072 100644 --- a/.github/workflows/test_destination_synapse.yml +++ b/.github/workflows/test_destination_synapse.yml @@ -24,7 +24,7 @@ jobs: get_docs_changes: name: docs changes uses: ./.github/workflows/get_docs_changes.yml - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}} run_loader: name: test diff --git a/.github/workflows/test_destinations.yml b/.github/workflows/test_destinations.yml index 0a6ed1226b..6e15e2da65 100644 --- a/.github/workflows/test_destinations.yml +++ b/.github/workflows/test_destinations.yml @@ -33,7 +33,7 @@ jobs: name: docs changes uses: ./.github/workflows/get_docs_changes.yml # Tests that require credentials do not run in forks - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}} run_loader: name: test