From 6d2d72620b32ed011386a0c7e0436be3cca4bea0 Mon Sep 17 00:00:00 2001 From: Bruno Antonellini Date: Thu, 8 Feb 2024 15:24:03 -0300 Subject: [PATCH] New dbt-checkpoint github action dispatch --- .github/workflows/dbt_checkpoint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/dbt_checkpoint.yml 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 }}