diff --git a/.github/workflows/dbt_checkpoint.yml b/.github/workflows/dbt_checkpoint.yml new file mode 100644 index 00000000..482ccc05 --- /dev/null +++ b/.github/workflows/dbt_checkpoint.yml @@ -0,0 +1,27 @@ +name: pre-commit + +on: + workflow_dispatch: + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Python + uses: actions/setup-python@v2 + + - name: Identify file changes + id: file_changes + uses: trilom/file-changes-action@v1.2.4 + with: + output: " " + + - name: Run dbt checkpoint + uses: dbt-checkpoint/dbt-checkpoint@v1.2.0 + env: + DB_PASSWORD: ${{ secrets.SuperSecret }} + with: + args: run --files ${{ steps.file_changes.outputs.files }}