Skip to content

Commit 0882547

Browse files
author
Harmanpreet Kaur
committed
Refactor workflows: streamline deployment triggers and remove redundant paths from PyLint configuration
1 parent 930fd04 commit 0882547

3 files changed

Lines changed: 16 additions & 39 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,6 @@
11
name: Validate Deployment v3
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
- dev-v3
8-
- hotfix
9-
paths:
10-
- 'infra/main.bicep'
11-
- 'infra/modules/**/*.bicep'
12-
- 'infra/*.parameters.json'
13-
- 'infra/scripts/**'
14-
- '.github/workflows/deploy.yml'
15-
- 'azure.yaml'
16-
- 'azure_custom.yaml'
17-
pull_request:
18-
types:
19-
- opened
20-
- ready_for_review
21-
- reopened
22-
- synchronize
23-
branches:
24-
- main
25-
- dev-v3
26-
- hotfix
27-
paths:
28-
- 'infra/main.bicep'
29-
- 'infra/modules/**/*.bicep'
30-
- 'infra/*.parameters.json'
31-
- 'infra/scripts/**'
32-
- '.github/workflows/deploy.yml'
33-
- 'azure.yaml'
34-
- 'azure_custom.yaml'
354
workflow_run:
365
workflows: ["Build Docker and Optional Push v3"]
376
types:
@@ -416,4 +385,4 @@ jobs:
416385
if: always()
417386
run: |
418387
az logout
419-
echo "Logged out from Azure."
388+
echo "Logged out from Azure."

.github/workflows/docker-build-and-push.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ on:
1212
- 'src/backend/**'
1313
- 'src/mcp_server/**'
1414
- '.github/workflows/docker-build-and-push.yml'
15+
- 'infra/main.bicep'
16+
- 'infra/modules/**/*.bicep'
17+
- 'infra/*.parameters.json'
18+
- 'infra/scripts/**'
19+
- '.github/workflows/deploy.yml'
20+
- 'azure.yaml'
21+
- 'azure_custom.yaml'
1522
pull_request:
1623
types:
1724
- opened
@@ -28,6 +35,13 @@ on:
2835
- 'src/backend/**'
2936
- 'src/mcp_server/**'
3037
- '.github/workflows/docker-build-and-push.yml'
38+
- 'infra/main.bicep'
39+
- 'infra/modules/**/*.bicep'
40+
- 'infra/*.parameters.json'
41+
- 'infra/scripts/**'
42+
- '.github/workflows/deploy.yml'
43+
- 'azure.yaml'
44+
- 'azure_custom.yaml'
3145
workflow_dispatch:
3246

3347
jobs:

.github/workflows/pylint.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ on:
88
- 'src/backend/requirements.txt'
99
- '.flake8'
1010
- '.github/workflows/pylint.yml'
11-
pull_request:
12-
paths:
13-
- 'src/backend/**/*.py'
14-
- 'src/mcp_server/**/*.py'
15-
- 'src/backend/requirements.txt'
16-
- '.flake8'
17-
- '.github/workflows/pylint.yml'
11+
1812

1913
jobs:
2014
build:

0 commit comments

Comments
 (0)