Update prettier.yml

pull/729/merge
yuhan6665 2025-07-27 18:27:02 -04:00
parent f966d0f391
commit 18f4ac64d6
1 changed files with 6 additions and 0 deletions

View File

@ -11,9 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
if: github.event.pull_request.head.repo.full_name == 'XTLS/Xray-docs-next'
uses: actions/checkout@v4
with:
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
if: github.event.pull_request.head.repo.full_name == 'XTLS/Xray-docs-next'
uses: creyD/prettier_action@v4.6