Skip to content

Commit 483e4f2

Browse files
Merge pull request #66 from microsoft/psl-path-filter
fix: Filter the paths to run the pipeline
2 parents 5aa55ba + 12063b6 commit 483e4f2

3 files changed

Lines changed: 41 additions & 15 deletions

File tree

.github/workflows/azd-ai-template-validation.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
name: AZD AI Template validation
22

33
on:
4-
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
paths:
9+
- 'infra/**'
10+
- 'src/**'
11+
- 'azure.yaml'
12+
- '.github/workflows/azd-ai-template-validation.yml'
513
workflow_dispatch:
614
schedule:
715
- cron: '30 1 * * 4' # Every Thursday 7:00 AM IST / 1:30 AM UTC

.github/workflows/azure-dev.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,25 @@ name: CI/CD Azure - Real-Time Intelligence Operations
33
# Trigger the workflow on manual dispatch
44
on:
55
workflow_dispatch:
6-
7-
# - "*"
8-
# paths:
9-
# - "infra/**"
10-
# - "src/**"
11-
# - ".github/workflows/azure-dev.yml"
12-
# pull_request:
13-
# branches:
14-
# - main
15-
# paths:
16-
# - "infra/**"
17-
# - "src/**"
18-
# - ".github/workflows/azure-dev.yml"
6+
push:
7+
branches:
8+
- main
9+
- dev
10+
paths:
11+
- 'infra/**'
12+
- 'src/**'
13+
- 'azure.yaml'
14+
- 'requirements.txt'
15+
- '.github/workflows/azure-dev.yml'
16+
pull_request:
17+
branches:
18+
- main
19+
paths:
20+
- 'infra/**'
21+
- 'src/**'
22+
- 'azure.yaml'
23+
- 'requirements.txt'
24+
- '.github/workflows/azure-dev.yml'
1925

2026
# Set up permissions for deploying with secretless Azure federated credentials
2127
permissions:

.github/workflows/pylint.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: PyLint
22

3-
on: [push]
3+
on:
4+
push:
5+
paths:
6+
- 'src/**/*.py'
7+
- 'infra/**/*.py'
8+
- 'requirements.txt'
9+
- '.github/workflows/pylint.yml'
10+
pull_request:
11+
paths:
12+
- 'src/**/*.py'
13+
- 'infra/**/*.py'
14+
- 'requirements.txt'
15+
- '.github/workflows/pylint.yml'
416

517
jobs:
618
build:

0 commit comments

Comments
 (0)