diff --git a/.github/workflows/terraform_deployments_preprod_apply.yaml b/.github/workflows/terraform_deployments_preprod_apply.yaml index a04566e..cac266e 100644 --- a/.github/workflows/terraform_deployments_preprod_apply.yaml +++ b/.github/workflows/terraform_deployments_preprod_apply.yaml @@ -6,6 +6,9 @@ on: push: branches: - main + paths: + - "deployments/preprod/**" + - ".github/workflows/terraform_deployments_preprod_apply.yaml" workflow_dispatch: env: @@ -44,4 +47,4 @@ jobs: id: apply with: run: ${{ steps.apply-run.outputs.run_id }} - comment: "Apply Run from GitHub Actions CI ${{ github.sha }}" \ No newline at end of file + comment: "Apply Run from GitHub Actions CI ${{ github.sha }}" diff --git a/.github/workflows/terraform_deployments_preprod_plan.yaml b/.github/workflows/terraform_deployments_preprod_plan.yaml index 97e2a53..444519f 100644 --- a/.github/workflows/terraform_deployments_preprod_plan.yaml +++ b/.github/workflows/terraform_deployments_preprod_plan.yaml @@ -4,6 +4,9 @@ name: "Terraform Deploying Preprod Plan" on: pull_request: + paths: + - "deployments/preprod/**" + - ".github/workflows/terraform_deployments_preprod_plan.yaml" workflow_dispatch: env: @@ -79,4 +82,4 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, body: output - }); \ No newline at end of file + }); diff --git a/.github/workflows/terraform_deployments_prod_apply.yaml b/.github/workflows/terraform_deployments_prod_apply.yaml index 0d776db..e8f0ab0 100644 --- a/.github/workflows/terraform_deployments_prod_apply.yaml +++ b/.github/workflows/terraform_deployments_prod_apply.yaml @@ -6,6 +6,9 @@ on: push: branches: - main + paths: + - "deployments/prod/**" + - ".github/workflows/terraform_deployments_prod_apply.yaml" workflow_dispatch: env: @@ -36,4 +39,4 @@ jobs: id: apply-run with: workspace: ${{ env.TF_WORKSPACE }} - configuration_version: ${{ steps.apply-upload.outputs.configuration_version_id }} \ No newline at end of file + configuration_version: ${{ steps.apply-upload.outputs.configuration_version_id }} diff --git a/.github/workflows/terraform_deployments_prod_plan.yaml b/.github/workflows/terraform_deployments_prod_plan.yaml index 31679d0..8386abe 100644 --- a/.github/workflows/terraform_deployments_prod_plan.yaml +++ b/.github/workflows/terraform_deployments_prod_plan.yaml @@ -4,6 +4,9 @@ name: "Terraform Deploying Prod Plan" on: pull_request: + paths: + - "deployments/prod/**" + - ".github/workflows/terraform_deployments_prod_plan.yaml" workflow_dispatch: env: @@ -79,4 +82,4 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, body: output - }); \ No newline at end of file + }); diff --git a/.github/workflows/terraform_provisioning_preprod_apply.yaml b/.github/workflows/terraform_provisioning_preprod_apply.yaml index ab390b8..b3f1cd0 100644 --- a/.github/workflows/terraform_provisioning_preprod_apply.yaml +++ b/.github/workflows/terraform_provisioning_preprod_apply.yaml @@ -6,6 +6,9 @@ on: push: branches: - main + paths: + - "provisioning/preprod/**" + - ".github/workflows/terraform_provisioning_preprod_apply.yaml" workflow_dispatch: env: diff --git a/.github/workflows/terraform_provisioning_preprod_plan.yaml b/.github/workflows/terraform_provisioning_preprod_plan.yaml index f85e617..7ca8a25 100644 --- a/.github/workflows/terraform_provisioning_preprod_plan.yaml +++ b/.github/workflows/terraform_provisioning_preprod_plan.yaml @@ -4,6 +4,9 @@ name: "Terraform Provisioning Preprod Plan" on: pull_request: + paths: + - "provisioning-preprod/**" + - ".github/workflows/terraform_provisioning_preprod_plan.yaml" workflow_dispatch: env: diff --git a/.github/workflows/terraform_provisioning_prod_apply.yaml b/.github/workflows/terraform_provisioning_prod_apply.yaml index 5f80b86..ea412a9 100644 --- a/.github/workflows/terraform_provisioning_prod_apply.yaml +++ b/.github/workflows/terraform_provisioning_prod_apply.yaml @@ -6,6 +6,9 @@ on: push: branches: - main + paths: + - "provisioning/prod/**" + - ".github/workflows/terraform_provisioning_prod_apply.yaml" workflow_dispatch: env: @@ -36,4 +39,4 @@ jobs: id: apply-run with: workspace: ${{ env.TF_WORKSPACE }} - configuration_version: ${{ steps.apply-upload.outputs.configuration_version_id }} \ No newline at end of file + configuration_version: ${{ steps.apply-upload.outputs.configuration_version_id }} diff --git a/.github/workflows/terraform_provisioning_prod_plan.yaml b/.github/workflows/terraform_provisioning_prod_plan.yaml index acf0956..d50446f 100644 --- a/.github/workflows/terraform_provisioning_prod_plan.yaml +++ b/.github/workflows/terraform_provisioning_prod_plan.yaml @@ -4,6 +4,9 @@ name: "Terraform Provisioning Prod Plan" on: pull_request: + paths: + - "provisioning-prod/**" + - ".github/workflows/terraform_provisioning_prod_plan.yaml" workflow_dispatch: env: