Skip to content

Commit

Permalink
filter fix (#1626)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben851 authored Oct 24, 2024
1 parent fcda637 commit 622db05
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions .github/workflows/terragrunt_plan_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
outputs:
common: ${{ steps.filter.outputs.common }}
ecr: ${{ steps.filter.outputs.ecr }}
ecr-us-east: ${{ steps.filter.outputs.ecr-us-east }}
ses_receiving_emails: ${{ steps.filter.outputs.ses_receiving_emails }}
ses_to_sqs_email_callbacks: ${{ steps.filter.outputs.ses_to_sqs_email_callbacks }}
sns_to_sqs_sms_callbacks: ${{ steps.filter.outputs.sns_to_sqs_sms_callbacks }}
Expand Down Expand Up @@ -67,6 +68,9 @@ jobs:
ecr:
- 'aws/ecr/**'
- 'env/${{env.ENVIRONMENT}}/ecr/**'
ecr-us-east:
- 'aws/ecr-us-east/**'
- 'env/${{env.ENVIRONMENT}}/ecr-us-east/**'
eks:
- 'aws/eks/**'
- 'env/${{env.ENVIRONMENT}}/eks/**'
Expand Down Expand Up @@ -159,7 +163,7 @@ jobs:
terragrunt-plan-ecr:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.ecr == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
needs: terragrunt-filter
Expand Down Expand Up @@ -194,7 +198,7 @@ jobs:
terragrunt-plan-ecr-us-east:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.ecr-us-east == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
needs: terragrunt-filter
Expand Down Expand Up @@ -230,7 +234,7 @@ jobs:
terragrunt-plan-ses_receiving_emails:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.ses_receiving_emails == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -264,7 +268,7 @@ jobs:
terragrunt-plan-dns:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.dns == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -298,7 +302,7 @@ jobs:
terragrunt-plan-ses_validation_dns_entries:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.ses_validation_dns_entries == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -332,7 +336,7 @@ jobs:
terragrunt-plan-cloudfront:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.cloudfront == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -366,7 +370,7 @@ jobs:
terragrunt-plan-eks:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.eks == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -400,7 +404,7 @@ jobs:
terragrunt-plan-elasticache:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.elasticache == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -434,7 +438,7 @@ jobs:
terragrunt-plan-rds:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.rds == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -468,7 +472,7 @@ jobs:
terragrunt-plan-lambda-api:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.api == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -502,7 +506,7 @@ jobs:
terragrunt-plan-lambda-admin-pr:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.lambda-admin-pr == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -536,7 +540,7 @@ jobs:
terragrunt-plan-performance-test:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.performance-test == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -571,7 +575,7 @@ jobs:
terragrunt-plan-heartbeat:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.heartbeat == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -605,7 +609,7 @@ jobs:
terragrunt-plan-database-tools:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.database-tools == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -639,7 +643,7 @@ jobs:
terragrunt-plan-quicksight:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.quicksight == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -673,7 +677,7 @@ jobs:
terragrunt-plan-lambda-google-cidr:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.lambda-google-cidr == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -707,7 +711,7 @@ jobs:
terragrunt-plan-ses_to_sqs_email_callbacks:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.ses_to_sqs_email_callbacks == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -741,7 +745,7 @@ jobs:
terragrunt-plan-sns_to_sqs_sms_callbacks:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.sns_to_sqs_sms_callbacks == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -775,7 +779,7 @@ jobs:
terragrunt-plan-pinpoint_to_sqs_sms_callbacks:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.pinpoint_to_sqs_sms_callbacks == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -809,7 +813,7 @@ jobs:
terragrunt-plan-system_status:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.system_status == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -843,7 +847,7 @@ jobs:
terragrunt-plan-system_status_static_site:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.system_status_static_site == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
needs: [terragrunt-filter,terragrunt-plan-common,terragrunt-plan-system_status]
Expand Down Expand Up @@ -877,7 +881,7 @@ jobs:
terragrunt-plan-newrelic:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.newrelic == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
needs: [terragrunt-filter,terragrunt-plan-common]
Expand Down Expand Up @@ -911,7 +915,7 @@ jobs:
terragrunt-plan-manifest_secrets:
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true' &&
needs.terragrunt-filter.outputs.manifest_secrets == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
needs: [terragrunt-filter,terragrunt-plan-rds, terragrunt-plan-elasticache, terragrunt-plan-eks, terragrunt-plan-lambda-api, terragrunt-plan-lambda-admin-pr, terragrunt-plan-performance-test, terragrunt-plan-heartbeat, terragrunt-plan-database-tools, terragrunt-plan-quicksight, terragrunt-plan-lambda-google-cidr, terragrunt-plan-ses_to_sqs_email_callbacks, terragrunt-plan-sns_to_sqs_sms_callbacks, terragrunt-plan-pinpoint_to_sqs_sms_callbacks, terragrunt-plan-system_status, terragrunt-plan-system_status_static_site, terragrunt-plan-newrelic]
Expand Down

0 comments on commit 622db05

Please sign in to comment.