[Fix] Handle edge case for effective_properties
in databricks_sql_table
#3172
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Provider schema | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
workflow_dispatch: | |
inputs: | |
base: | |
description: "Base ref" | |
default: "main" | |
required: true | |
head: | |
description: "Head ref" | |
default: "main" | |
required: true | |
jobs: | |
compute_diff: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the base commit first and the head commit second. diff-schema | |
# uses the current commit as the head commit. | |
- if: github.event_name == 'pull_request' | |
name: Checkout PR base commit | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.base_ref }} | |
- if: github.event_name == 'pull_request' | |
name: Checkout PR merge commit | |
uses: actions/checkout@v4 | |
- if: github.event_name == 'workflow_dispatch' | |
name: Checkout base commit | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.base }} | |
- if: github.event_name == 'workflow_dispatch' | |
name: Checkout head commit | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.head }} | |
- name: "Setup Go" | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
- name: "Setup Terraform" | |
uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_wrapper: false | |
- name: "Install jd" | |
run: go install github.com/josephburnett/[email protected] | |
- run: make diff-schema | |
env: | |
BASE_COMMIT: ${{ github.event_name == 'pull_request' && github.base_ref || github.event.inputs.base }} |