Skip to content

Commit 9b7a7e4

Browse files
Merge pull request #896 from microsoft/psl-pathfiler
fix: Filter the files path for pipeline run
2 parents 313a9cf + 1ba4be8 commit 9b7a7e4

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.azdo/pipelines/azure-dev.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
# Run when commits are pushed to mainline branch (main or master)
22
# Set this to the mainline branch you are using
33
trigger:
4-
- main
4+
branches:
5+
include:
6+
- main
7+
paths:
8+
include:
9+
- src/*
10+
- infra/*
11+
- azure.yaml
12+
- azure_custom.yaml
13+
- .azdo/pipelines/azure-dev.yml
14+
exclude:
15+
- '*.md'
16+
- docs/*
17+
- data/*
518

619
# Azure Pipelines workflow to deploy to Azure using azd
720
# To configure required secrets and service connection for connecting to Azure, simply run `azd pipeline config --provider azdo`

.github/workflows/deploy-waf.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
push:
99
branches:
1010
- main
11+
paths:
12+
- 'src/**'
13+
- 'infra/**'
14+
- 'azure.yaml'
15+
- 'azure_custom.yaml'
16+
- '.github/workflows/deploy-waf.yml'
1117
schedule:
1218
- cron: "0 11,23 * * *" # Runs at 11:00 AM and 11:00 PM GMT
1319

0 commit comments

Comments
 (0)