diff --git a/.github/workflows/dbt_seed_refresh.yml b/.github/workflows/dbt_seed_refresh.yml new file mode 100644 index 0000000..caf9afd --- /dev/null +++ b/.github/workflows/dbt_seed_refresh.yml @@ -0,0 +1,46 @@ +name: dbt_seed_refresh +run-name: dbt_seed_refresh + +on: + push: + branches: + - main + paths: + - "data/**/*.csv" # Only trigger when CSV files change + +env: + DBT_PROFILES_DIR: ./ + + ACCOUNT: "${{ vars.ACCOUNT }}" + ROLE: "${{ vars.ROLE }}" + USER: "${{ vars.USER }}" + PASSWORD: "${{ secrets.PASSWORD }}" + REGION: "${{ vars.REGION }}" + DATABASE: "${{ vars.DATABASE }}" + WAREHOUSE: "${{ vars.WAREHOUSE }}" + SCHEMA: "${{ vars.SCHEMA }}" + +concurrency: + group: ${{ github.workflow }} + +jobs: + run_dbt_jobs: + runs-on: ubuntu-latest + environment: + name: workflow_prod + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: "3.10" + cache: "pip" + + - name: install dependencies + run: | + pip install -r requirements.txt + dbt deps + - name: Run dbt seed + run: | + dbt seed diff --git a/data/github_actions__workflows.csv b/data/github_actions__workflows.csv index c9249d4..b4cb272 100644 --- a/data/github_actions__workflows.csv +++ b/data/github_actions__workflows.csv @@ -5,5 +5,7 @@ dbt_run_scheduled_decoded_logs,"8,38 * * * *" dbt_test_intraday,"39 */4 * * *" dbt_test_daily,"22 8 * * *" dbt_test_monthly,"5 7 28 * *" -dbt_run_scheduled_abis,"11 23 * * *" -dbt_run_streamline_decoded_logs_history,"5 22 * * 6" \ No newline at end of file +dbt_run_scheduled_abis,"11 */12 * * *" +dbt_run_streamline_decoded_logs_history,"5 22 * * 6" +dbt_run_scheduled_decoded_logs_history_user_abis,"38 23 * * *" +dbt_run_full_observability,"0 18 1 * *" \ No newline at end of file