File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,23 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout
14+ if : github.event.pull_request.head.repo.full_name == 'XTLS/Xray-docs-next'
1415 uses : actions/checkout@v4
1516 with :
1617 ref : ${{ github.head_ref }}
18+ - name : Checkout
19+ if : github.event.pull_request.head.repo.full_name != 'XTLS/Xray-docs-next'
20+ uses : actions/checkout@v4
1721
1822 - name : Prettify code
23+ if : github.event.pull_request.head.repo.full_name == 'XTLS/Xray-docs-next'
24+ uses : creyD/prettier_action@v4.6
25+ with :
26+ prettier_options : --write **/*.{js,ts,md,vue}
27+ - name : Prettify code
28+ if : github.event.pull_request.head.repo.full_name != 'XTLS/Xray-docs-next'
1929 uses : creyD/prettier_action@v4.6
2030 with :
2131 prettier_options : --write **/*.{js,ts,md,vue}
32+ only_changed : true
33+ dry : true
You can’t perform that action at this time.
0 commit comments