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:
Julius Remigio 2023-10-25 17:04:40 -07:00 committed by GitHub
parent 0d776762d2
commit 9cd81aec54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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 }}

View File

@ -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 }}