From 39d014db54610dc389375f7acf3780ede0eb9b79 Mon Sep 17 00:00:00 2001 From: Gerda Shank Date: Thu, 25 Jul 2024 09:41:00 -0400 Subject: [PATCH] put back workflow_call --- .github/workflows/integration-tests.yml | 28 ++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index e041cbf..46b8ae2 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -30,6 +30,28 @@ on: type: string required: false default: main + workflow_call: + inputs: + dbt_adapters_branch: + description: "The branch of dbt-adapters to use" + type: string + required: false + default: "main" + dbt_core_branch: + description: "The branch of dbt-core to use" + type: string + required: false + default: "main" + name: + description: "name to associate with run" + required: false + type: string + default: "Adapter Integration Tests" + adapter_branch: + description: "The branch of this adapter repository to use" + type: string + required: false + default: main permissions: read-all @@ -67,17 +89,17 @@ jobs: steps: - name: Check out repository - if: github.event_name != 'workflow_dispatch' + if: github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' uses: actions/checkout@v4 - name: Check out the repository (workflow_dispatch) - if: github.event_name == 'workflow_dispatch' + if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' uses: actions/checkout@v4 with: ref: ${{ inputs.adapter_branch }} - name: Update Adapters and Core branches - if: github.event_name == 'workflow_dispatch' + if: ${{ github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch'}} run: | ./.github/scripts/update_dev_packages.sh \ ${{ inputs.dbt_adapters_branch }} \