Handle prettify differently for repos
parent
abf22b7b78
commit
57336cf815
|
@ -11,11 +11,23 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
if: github.event.pull_request.head.repo.full_name == 'XTLS/Xray-docs-next'
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
- name: Checkout
|
||||||
|
if: github.event.pull_request.head.repo.full_name != 'XTLS/Xray-docs-next'
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Prettify code
|
- name: Prettify code
|
||||||
|
if: github.event.pull_request.head.repo.full_name == 'XTLS/Xray-docs-next'
|
||||||
uses: creyD/prettier_action@v4.6
|
uses: creyD/prettier_action@v4.6
|
||||||
with:
|
with:
|
||||||
prettier_options: --write **/*.{js,ts,md,vue}
|
prettier_options: --write **/*.{js,ts,md,vue}
|
||||||
|
- name: Prettify code
|
||||||
|
if: github.event.pull_request.head.repo.full_name != 'XTLS/Xray-docs-next'
|
||||||
|
uses: creyD/prettier_action@v4.6
|
||||||
|
with:
|
||||||
|
prettier_options: --write **/*.{js,ts,md,vue}
|
||||||
|
only_changed: true
|
||||||
|
dry: true
|
||||||
|
|
Loading…
Reference in New Issue