Skip to content

Commit 0a2e98f

Browse files
committed
chore: rspress repo add diff CI
1 parent 6e4aa1b commit 0a2e98f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/diff.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Diff
22

33
on:
44
pull_request:
5-
types: [opened, synchronize, reopened, closed]
5+
branches: [main]
6+
push:
7+
branches: [main]
68

79
jobs:
810
Build:
@@ -45,4 +47,4 @@ jobs:
4547
with:
4648
github_token: ${{ secrets.GITHUB_TOKEN }}
4749
file_path: 'website/doc_build/web/rsdoctor-data.json'
48-
target_branch: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.event.repository.default_branch }}
50+
target_branch: 'main'

0 commit comments

Comments
 (0)