mirror of
https://github.com/FlipsideCrypto/analytics-workflow-templates.git
synced 2026-02-06 11:17:52 +00:00
added artifact
This commit is contained in:
parent
c1144f942c
commit
0fbbed136c
46
.github/workflows/dbt_run_scheduled.yml
vendored
Normal file
46
.github/workflows/dbt_run_scheduled.yml
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
name: dbt_run
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
dbt_command:
|
||||
type: string
|
||||
description: 'dbt commands to run'
|
||||
required: true
|
||||
|
||||
env:
|
||||
DBT_PROFILES_DIR: ./
|
||||
|
||||
ACCOUNT: "${{ secrets.ACCOUNT }}"
|
||||
ROLE: "${{ secrets.ROLE }}"
|
||||
USER: "${{ secrets.USER }}"
|
||||
PASSWORD: "${{ secrets.PASSWORD }}"
|
||||
REGION: "${{ secrets.REGION }}"
|
||||
DATABASE_DEV: "${{ secrets.DATABASE_DEV }}"
|
||||
DATABASE_PROD: "${{ secrets.DATABASE_PROD }}"
|
||||
WAREHOUSE_DEV: "${{ secrets.WAREHOUSE_DEV }}"
|
||||
WAREHOUSE_PROD: "${{ secrets.WAREHOUSE_PROD }}"
|
||||
SCHEMA: "${{ secrets.SCHEMA }}"
|
||||
|
||||
jobs:
|
||||
scheduled_run:
|
||||
name: dbt_run
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: workflow
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: "3.7.x"
|
||||
|
||||
- name: install dependencies
|
||||
run: |
|
||||
pip install dbt-snowflake
|
||||
dbt deps
|
||||
|
||||
- name: Run DBT Jobs
|
||||
run: |
|
||||
${{ inputs.dbt_command }}
|
||||
8
.github/workflows/run_chain_template.yml
vendored
8
.github/workflows/run_chain_template.yml
vendored
@ -43,4 +43,10 @@ jobs:
|
||||
|
||||
- name: Run DBT Jobs
|
||||
run: |
|
||||
${{ inputs.dbt_command }}
|
||||
${{ inputs.dbt_command }}
|
||||
|
||||
- name: Upload Artifact
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: results_artifact
|
||||
path: ./target/run_results.json
|
||||
Loading…
Reference in New Issue
Block a user