mirror of
https://github.com/FlipsideCrypto/livequery-models.git
synced 2026-02-06 10:56:46 +00:00
Tweak workflow (#67)
* try conditional step instead of conditional job * use fallback instead of conditional workflow step use job concurrency
This commit is contained in:
parent
0d776762d2
commit
9cd81aec54
2
.github/workflows/dbt.yml
vendored
2
.github/workflows/dbt.yml
vendored
@ -26,7 +26,7 @@ env:
|
||||
PASSWORD: ${{ secrets.PASSWORD }}
|
||||
REGION: ${{ vars.REGION }}
|
||||
DATABASE: ${{ vars.DATABASE }}
|
||||
WAREHOUSE: ${{ vars.WAREHOUSE }}
|
||||
WAREHOUSE: ${{ inputs.warehouse || vars.WAREHOUSE }}
|
||||
SCHEMA: ${{ vars.SCHEMA }}
|
||||
TARGET: ${{ vars.TARGET }}
|
||||
|
||||
|
||||
6
.github/workflows/dbt_integration_test.yml
vendored
6
.github/workflows/dbt_integration_test.yml
vendored
@ -26,14 +26,12 @@ on:
|
||||
# Runs “Daily at midnight GMT” (see https://crontab.guru)
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}
|
||||
|
||||
jobs:
|
||||
hosted:
|
||||
uses: ./.github/workflows/dbt.yml
|
||||
if: github.event_name == 'schedule' || github.event_name == 'push'
|
||||
secrets: inherit
|
||||
concurrency: ${{ github.workflow }}
|
||||
with:
|
||||
warehouse: ${{ vars.WAREHOUSE }}
|
||||
environment: hosted
|
||||
@ -43,6 +41,7 @@ jobs:
|
||||
uses: ./.github/workflows/dbt.yml
|
||||
if: github.event_name == 'schedule' || github.event_name == 'push'
|
||||
secrets: inherit
|
||||
concurrency: ${{ github.workflow }}
|
||||
with:
|
||||
warehouse: ${{ vars.WAREHOUSE }}
|
||||
environment: prod
|
||||
@ -52,6 +51,7 @@ jobs:
|
||||
uses: ./.github/workflows/dbt.yml
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
secrets: inherit
|
||||
concurrency: ${{ github.workflow }}
|
||||
with:
|
||||
warehouse: ${{ inputs.warehouse }}
|
||||
environment: ${{ inputs.environment }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user