Skip to content

Commit

Permalink
Restore dbt cache in deploy-dbt-docs to ensure it can run on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeancochrane committed Aug 29, 2023
1 parent 8a86b51 commit 1f11baf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/deploy_dbt_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ jobs:
with:
role-to-assume: ${{ secrets.AWS_IAM_ROLE_TO_ASSUME_ARN }}

- name: Restore dbt state cache
id: cache
uses: ./.github/actions/restore_dbt_cache
with:
path: ${{ env.PROJECT_DIR }}/${{ env.STATE_DIR }}
key: ${{ env.CACHE_KEY }}
restore-key: ${{ env.CACHE_RESTORE_KEY }}

- name: Setup node
uses: actions/setup-node@v3

Expand All @@ -43,7 +51,7 @@ jobs:
shell: bash

- name: Generate docs
run: dbt docs generate --target "$TARGET"
run: dbt docs generate --target "$TARGET" --defer --state "$STATE_DIR"
working-directory: ${{ env.PROJECT_DIR }}
shell: bash

Expand Down

0 comments on commit 1f11baf

Please sign in to comment.