From 85c0ae7de06885db0f3f05088f7f7ba89af673e6 Mon Sep 17 00:00:00 2001 From: tarikceric Date: Mon, 15 Dec 2025 18:48:56 -0800 Subject: [PATCH] update docs update --- .github/workflows/dbt_docs_update.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dbt_docs_update.yml b/.github/workflows/dbt_docs_update.yml index 2c4bf3f1..c4b20fb1 100644 --- a/.github/workflows/dbt_docs_update.yml +++ b/.github/workflows/dbt_docs_update.yml @@ -4,6 +4,11 @@ on: push: branches: - "main" + inputs: + resource_id: + description: 'DDS resource ID to refresh (defaults to repository name if not provided)' + required: false + type: string env: USE_VARS: "${{ vars.USE_VARS }}" @@ -22,8 +27,7 @@ concurrency: group: ${{ github.workflow }} jobs: - scheduled_run: - name: docs_update + run_dbt_jobs: runs-on: ubuntu-latest environment: name: workflow_prod @@ -40,12 +44,15 @@ jobs: run: | pip install -r requirements.txt dbt deps + - name: checkout docs branch run: | git checkout -b docs origin/main - name: generate dbt docs - run: dbt docs generate -t prod + run: | + dbt ls -t prod + dbt docs generate --no-compile -t prod - name: move files to docs directory run: | @@ -69,8 +76,19 @@ jobs: run: | git push -f --set-upstream origin docs + refresh-dds-cache: + needs: [run_dbt_jobs] + if: success() + uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/refresh_dds.yml@main + with: + resource_id: ${{ inputs.resource_id }} + api_url: ${{ github.ref == 'refs/heads/main' && 'https://dds-api.fsc-data-platform.io' || 'https://dds-api.fsc-data-platform-stg.io' }} + force_refresh: true + secrets: + DDS_API_KEY: ${{ github.ref == 'refs/heads/main' && secrets.DDS_PROD_API_KEY || secrets.DDS_STG_API_KEY }} + notify-failure: - needs: [scheduled_run] + needs: [run_dbt_jobs] if: failure() uses: ./.github/workflows/slack_notify.yml secrets: