Skip to content

Commit

Permalink
🚀 When pushing to main branch -> use PROD. Otherwise use UAT
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJenne18 committed May 29, 2024
1 parent 5bbcf1e commit 48af4cf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update_eu_concern_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: update eu concern list

jobs:
update_eu_concern_list:
environment: ${{ github.ref == 'refs/heads/uat' && 'UAT' || 'PROD' }}
environment: ${{ github.ref == 'refs/heads/main' && 'PROD' || 'UAT' }}
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_indicators_preprocessing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: create full_timeseries.csv
jobs:
fetch-data:
runs-on: ${{ matrix.config.os }}
environment: ${{ github.ref == 'refs/heads/uat' && 'UAT' || 'PROD' }}
environment: ${{ github.ref == 'refs/heads/main' && 'PROD' || 'UAT' }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/upload_files_direct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: upload_files_direct
jobs:
upload_files:
runs-on: ${{ matrix.config.os }}
environment: ${{ github.ref == 'refs/heads/uat' && 'UAT' || 'PROD' }}
environment: ${{ github.ref == 'refs/heads/main' && 'PROD' || 'UAT' }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
Expand Down Expand Up @@ -86,4 +86,3 @@ jobs:
AWS_SESSION_TOKEN: ${{ steps.assume_role.outputs.AWS_SESSION_TOKEN }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}

3 changes: 1 addition & 2 deletions .github/workflows/upload_files_processing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: upload_files_processing
jobs:
upload_files:
runs-on: ${{ matrix.config.os }}
environment: ${{ github.ref == 'refs/heads/uat' && 'UAT' || 'PROD' }}
environment: ${{ github.ref == 'refs/heads/main' && 'PROD' || 'UAT' }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
Expand Down Expand Up @@ -86,4 +86,3 @@ jobs:
AWS_SESSION_TOKEN: ${{ steps.assume_role.outputs.AWS_SESSION_TOKEN }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}

0 comments on commit 48af4cf

Please sign in to comment.