Skip to content

Commit

Permalink
Change to upload the state to the recce cloud
Browse files Browse the repository at this point in the history
Signed-off-by: popcorny <celu@infuseai.io>
  • Loading branch information
popcornylu committed Jun 17, 2024
1 parent 213e6d7 commit 2ebde1c
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/recce-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
paths:
- warehouse/dbt/**

permissions:
contents: write

env:
# dbt env variables used in your dbt profiles.yml
DBT_PROFILES_DIR: ./
Expand All @@ -23,6 +26,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name:
run: |
git remote -v
git branch --show-current
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -61,20 +69,13 @@ jobs:
run: |
source $(poetry env info --path)/bin/activate
dbt deps
dbt build --target ${{ env.DBT_CURRENT_TARGET}}
# dbt build --target ${{ env.DBT_CURRENT_TARGET}}
dbt docs generate --target ${{ env.DBT_CURRENT_TARGET}}
env:
DBT_CURRENT_TARGET: "dev"

- name: Run Recce CI
run: poetry run recce run

- name: Archive Recce State File
uses: actions/upload-artifact@v4
id: recce-artifact-uploader
with:
name: recce-state-file
path: recce_state.json
run: poetry run recce run --cloud

- name: Prepare Recce Summary
id: recce-summary
Expand Down

0 comments on commit 2ebde1c

Please sign in to comment.