Skip to content

Commit 1ae479d

Browse files
committed
ci: fix duplicate workflow runs by limiting push trigger to main only
1 parent 7ecbecc commit 1ae479d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/nextjs-static-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 🚀 Deploy Static Next.js to GitHub Pages
22

33
on:
44
push:
5-
branches: ['**'] # Triggers on push to any branch
5+
branches: ['main'] # Only trigger push on main; PR branches use pull_request event
66
pull_request:
77
types: [opened, synchronize, reopened]
88
workflow_dispatch: # Allows manual triggering

0 commit comments

Comments
 (0)