diff --git a/.github/workflows/schema-check.yml b/.github/workflows/schema-check.yml index 4fb3980dcb7..157b333dba4 100644 --- a/.github/workflows/schema-check.yml +++ b/.github/workflows/schema-check.yml @@ -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 @@ -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