Skip to content

Commit

Permalink
Don't automatically run Artifact Schema Check on PRs (#11260)
Browse files Browse the repository at this point in the history
* Don't automatically run Artifact Schema Check on PRs

* Add branch as argument
  • Loading branch information
aranke authored Feb 6, 2025
1 parent 5f873da commit 588cbab
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/schema-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,21 @@
# occur so we want to proactively alert to it.
#
# **when?**
# On pushes to `develop` and release branches. Manual runs are also enabled.
# Only can be run manually
name: Artifact Schema Check

on:
pull_request:
types: [ opened, reopened, labeled, unlabeled, synchronize ]
paths-ignore: [ '.changes/**', '.github/**', 'tests/**', '**.md', '**.yml' ]
# pull_request:
# types: [ opened, reopened, labeled, unlabeled, synchronize ]
# paths-ignore: [ '.changes/**', '.github/**', 'tests/**', '**.md', '**.yml' ]

workflow_dispatch:
inputs:
target_branch:
description: "The branch to check against"
type: string
default: 'main'
required: true

# no special access is needed
permissions: read-all
Expand All @@ -43,6 +49,7 @@ jobs:
uses: actions/checkout@v4
with:
path: ${{ env.DBT_REPO_DIRECTORY }}
ref: ${{ inputs.target_branch }}

- name: Check for changes in core/dbt/artifacts
# https://github.com/marketplace/actions/paths-changes-filter
Expand Down

0 comments on commit 588cbab

Please sign in to comment.