mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-08-22 11:28:34 +00:00
Update prettier.yml
This commit is contained in:
parent
f966d0f391
commit
18f4ac64d6
6
.github/workflows/prettier.yml
vendored
6
.github/workflows/prettier.yml
vendored
@ -11,9 +11,15 @@ 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
|
||||||
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
- name: Prettify code
|
- name: Prettify code
|
||||||
if: github.event.pull_request.head.repo.full_name == 'XTLS/Xray-docs-next'
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user