From d1ceddf2f1e517fb5dafaa75bf28ab686d3d9729 Mon Sep 17 00:00:00 2001 From: Angela Tran Date: Thu, 31 Aug 2023 00:38:56 +0000 Subject: [PATCH] fix: make PR trigger also only happen for Terraform file changes --- terraform/pipeline/azure-pipelines.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/terraform/pipeline/azure-pipelines.yml b/terraform/pipeline/azure-pipelines.yml index 03606d58..7ebfa5bb 100644 --- a/terraform/pipeline/azure-pipelines.yml +++ b/terraform/pipeline/azure-pipelines.yml @@ -1,6 +1,4 @@ trigger: - # automatically runs on pull requests - # https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#pr-triggers branches: include: - dev @@ -15,6 +13,14 @@ trigger: include: - terraform/* +pr: + branches: + include: + - "*" + paths: + include: + - terraform/* + pool: vmImage: ubuntu-latest