Skip to content

Commit 6284a34

Browse files
authored
[v3/pipeline] Update hook.yml
modify run condition
1 parent d5bdd5c commit 6284a34

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/hook.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ name: io.github.sysdl132.pages.buildhook
33
on:
44
push:
55
branches:
6-
- main # default branch
6+
- main
7+
pull_request:
8+
branches:
9+
- main
710

811
jobs:
912
build:
@@ -45,4 +48,5 @@ jobs:
4548
steps:
4649
- name: Deploy to GitHub Pages
4750
id: deployment
48-
uses: actions/deploy-pages@v4
51+
uses: actions/deploy-pages@v4
52+
if: github.event_name == 'push'

0 commit comments

Comments
 (0)