Skip to content

Commit

Permalink
put back workflow_call
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Jul 25, 2024
1 parent d366822 commit 39d014d
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 }} \
Expand Down

0 comments on commit 39d014d

Please sign in to comment.