Skip to content

Commit ebf671d

Browse files
Copilotaurelianware
andcommitted
Fix Azure Static Web App workflow - skip when no site changes
Add path filters to azure-static-web-apps workflow to only run when: - site/ directory changes - workflow file itself changes This prevents the workflow from running on documentation-only PRs, which was causing build failures since the site content wasn't modified. Co-authored-by: aurelianware <194855645+aurelianware@users.noreply.github.com>
1 parent 7e8c6de commit ebf671d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/azure-static-web-apps-kind-wave-053ff9e1e.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- 'site/**'
9+
- '.github/workflows/azure-static-web-apps-kind-wave-053ff9e1e.yml'
710
pull_request:
811
types: [opened, synchronize, reopened, closed]
912
branches:
1013
- main
14+
paths:
15+
- 'site/**'
16+
- '.github/workflows/azure-static-web-apps-kind-wave-053ff9e1e.yml'
1117

1218
jobs:
1319
build_and_deploy_job:

0 commit comments

Comments
 (0)