From 82847d3f717585dd0d349bd6fb029d2f909572ac Mon Sep 17 00:00:00 2001 From: Ryan Ahearn Date: Tue, 8 Nov 2022 16:11:15 -0500 Subject: [PATCH] Only deploy egress proxy if the config changed --- .github/workflows/deploy-demo.yml | 8 +++++++- .github/workflows/deploy.yml | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-demo.yml b/.github/workflows/deploy-demo.yml index c973d6e89..592228422 100644 --- a/.github/workflows/deploy-demo.yml +++ b/.github/workflows/deploy-demo.yml @@ -18,7 +18,7 @@ jobs: - name: Check for changes to Terraform id: changed-terraform-files - uses: tj-actions/changed-files@v1.1.2 + uses: tj-actions/changed-files@v34 with: files: terraform/demo - name: Terraform init @@ -66,7 +66,13 @@ jobs: --var AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" --var AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" + - name: Check for changes to egress config + id: changed-egress-config + uses: tj-actions/changed-files@v34 + with: + files: deploy-config/egress_proxy/notify-api-demo.*.acl - name: Deploy egress proxy + if: steps.changed-egress-config.outputs.any_changed == 'true' uses: ./.github/actions/deploy-proxy with: cf_space: notify-demo diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0e8f29a7b..dd9f6255d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,7 +23,7 @@ jobs: - name: Check for changes to Terraform id: changed-terraform-files - uses: tj-actions/changed-files@v1.1.2 + uses: tj-actions/changed-files@v34 with: files: terraform/staging - name: Terraform init @@ -71,7 +71,13 @@ jobs: --var AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" --var AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" + - name: Check for changes to egress config + id: changed-egress-config + uses: tj-actions/changed-files@v34 + with: + files: deploy-config/egress_proxy/notify-api-staging.*.acl - name: Deploy egress proxy + if: steps.changed-egress-config.outputs.any_changed == 'true' uses: ./.github/actions/deploy-proxy with: cf_space: notify-staging