mirror of
https://github.com/FlipsideCrypto/analytics-workflow-templates.git
synced 2026-02-06 11:17:52 +00:00
updated
This commit is contained in:
parent
5bdacd6d58
commit
de9b993e7f
50
.github/workflows/dbt_run-adhoc.yml
vendored
50
.github/workflows/dbt_run-adhoc.yml
vendored
@ -1,50 +0,0 @@
|
||||
# This is a basic workflow that is manually triggered
|
||||
|
||||
name: dbt run ad hoc job
|
||||
|
||||
# Controls when the action will run. Workflow runs when manually triggered using the UI
|
||||
# or API.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# Inputs the workflow accepts.
|
||||
inputs:
|
||||
name:
|
||||
description: 'blockchain'
|
||||
default: 'axelar'
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- axelar
|
||||
- ethereum
|
||||
- polygon
|
||||
- flow
|
||||
- algorand
|
||||
- near
|
||||
inputs:
|
||||
name:
|
||||
description: 'environment'
|
||||
default: 'dev'
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- dev
|
||||
- prod
|
||||
inputs:
|
||||
name:
|
||||
description: 'command'
|
||||
default: ''
|
||||
required: true
|
||||
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "greet"
|
||||
greet:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Runs a single command using the runners shell
|
||||
- name: Send greeting
|
||||
run: echo "Hello ${{ github.event.inputs.name }}"
|
||||
35
.github/workflows/dbt_run-uds_lambda_read.yml
vendored
35
.github/workflows/dbt_run-uds_lambda_read.yml
vendored
@ -1,35 +0,0 @@
|
||||
# This is a basic workflow that is manually triggered
|
||||
|
||||
name: dbt run udf lambda read
|
||||
|
||||
# Controls when the action will run. Workflow runs when manually triggered using the UI
|
||||
# or API.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# Inputs the workflow accepts.
|
||||
inputs:
|
||||
name:
|
||||
# Friendly description to be shown in the UI instead of 'name'
|
||||
description: ''
|
||||
# Default value if no value is explicitly provided
|
||||
default: 'debug'
|
||||
# Input has to be provided for the workflow to run
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- info
|
||||
- warning
|
||||
- debug
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "greet"
|
||||
greet:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Runs a single command using the runners shell
|
||||
- name: Send greeting
|
||||
run: echo "Hello ${{ github.event.inputs.name }}"
|
||||
35
.github/workflows/dbt_test-adhoc.yml
vendored
35
.github/workflows/dbt_test-adhoc.yml
vendored
@ -1,35 +0,0 @@
|
||||
# This is a basic workflow that is manually triggered
|
||||
|
||||
name: Ad Hoc Job
|
||||
|
||||
# Controls when the action will run. Workflow runs when manually triggered using the UI
|
||||
# or API.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# Inputs the workflow accepts.
|
||||
inputs:
|
||||
name:
|
||||
# Friendly description to be shown in the UI instead of 'name'
|
||||
description: ''
|
||||
# Default value if no value is explicitly provided
|
||||
default: 'debug'
|
||||
# Input has to be provided for the workflow to run
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- info
|
||||
- warning
|
||||
- debug
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "greet"
|
||||
greet:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Runs a single command using the runners shell
|
||||
- name: Send greeting
|
||||
run: echo "Hello ${{ github.event.inputs.name }}"
|
||||
35
.github/workflows/maunal.yml
vendored
35
.github/workflows/maunal.yml
vendored
@ -1,35 +0,0 @@
|
||||
# This is a basic workflow that is manually triggered
|
||||
|
||||
name: Manual workflow
|
||||
|
||||
# Controls when the action will run. Workflow runs when manually triggered using the UI
|
||||
# or API.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# Inputs the workflow accepts.
|
||||
inputs:
|
||||
name:
|
||||
# Friendly description to be shown in the UI instead of 'name'
|
||||
description: 'Person to greet'
|
||||
# Default value if no value is explicitly provided
|
||||
default: 'debug'
|
||||
# Input has to be provided for the workflow to run
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- info
|
||||
- warning
|
||||
- debug
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "greet"
|
||||
greet:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Runs a single command using the runners shell
|
||||
- name: Send greeting
|
||||
run: echo "Hello ${{ github.event.inputs.name }}"
|
||||
46
.github/workflows/run_chain_template.yml
vendored
46
.github/workflows/run_chain_template.yml
vendored
@ -1,46 +0,0 @@
|
||||
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 }}
|
||||
Loading…
Reference in New Issue
Block a user