Skip to content

Commit

Permalink
update ci env syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
masonmenges committed Apr 24, 2024
1 parent 84feddf commit ee5d255
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/ci_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ on:
push:
branches:
- main
- dev
- Dev
paths:
- "$PROJECT_DIRECTORY/**"
workflow_dispatch:

jobs:
deploy:
name: Deploy $PROJECT_NAME flows
name: Deploy ${{ env.PROJECT_NAME }} flows
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
PREFECT_API_KEY: ${{ secrets.PREFECT_API_KEY }}
IMG_REPO: ${{ secrets.ECR_REPO }} # IMAGE REGISTRY SECRET should be referenced here
WORKSPACE: ${{ github.ref == 'refs/heads/main' && 'se-demos' || 'se-demos-dev' }}
WORK_POOL_NAME: ${{ github.ref == 'refs/heads/main' && '$PROD_WORKPOOL' || '$DEV_WORKPOOL' }}
WORK_POOL_NAME: ${{ github.ref == 'refs/heads/main' && env.PROD_WORKPOOL || env.DEV_WORKPOOL }}
SCHEDULES_ACTIVE: ${{ github.ref == 'refs/heads/main' && True || False }}
run: |
cd $PROJECT_DIRECTORY
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/aws_datalake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
deploy:
name: Deploy $PROJECT_NAME flows
name: Deploy ${{ env.PROJECT_NAME }} flows
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -50,8 +50,8 @@ jobs:
PREFECT_API_KEY: ${{ secrets.PREFECT_API_KEY }}
IMG_REPO: ${{ secrets.ECR_REPO }}
WORKSPACE: ${{ github.ref == 'refs/heads/main' && 'se-demos' || 'se-demos-dev' }}
WORK_POOL_NAME: ${{ github.ref == 'refs/heads/main' && '$PROD_WORKPOOL' || '$DEV_WORKPOOL' }}
SCHEDULES_ACTIVE: ${{ github.ref == 'refs/heads/main' && True || False }}
WORK_POOL_NAME: ${{ github.ref == 'refs/heads/main' && env.PROD_WORKPOOL || env.DEV_WORKPOOL }}
SCHEDULES_ACTIVE: ${{ github.ref == 'refs/heads/main' && 'True' || 'False' }}
run: |
cd $PROJECT_DIRECTORY
pip install -r requirements-ci.txt
Expand Down

0 comments on commit ee5d255

Please sign in to comment.