Merge pull request #438 from GSA/update-terraform-triggers

Run terraform on deploy when shared modules change
This commit is contained in:
Ryan Ahearn
2023-03-27 13:19:06 -04:00
committed by GitHub
2 changed files with 9 additions and 3 deletions

View File

@@ -20,7 +20,10 @@ jobs:
id: changed-terraform-files
uses: tj-actions/changed-files@v1.1.2
with:
files: terraform/demo
files: |
terraform/demo
terraform/shared
.github/workflows/deploy-demo.yml
- name: Terraform init
if: steps.changed-terraform-files.outputs.any_changed == 'true'
working-directory: terraform/demo

View File

@@ -1,4 +1,4 @@
name: Deploy to prototype environment
name: Deploy to staging environment
on:
workflow_run:
@@ -25,7 +25,10 @@ jobs:
id: changed-terraform-files
uses: tj-actions/changed-files@v1.1.2
with:
files: terraform/staging
files: |
terraform/staging
terraform/shared
.github/workflows/deploy.yml
- name: Terraform init
if: steps.changed-terraform-files.outputs.any_changed == 'true'
working-directory: terraform/staging