From 18f4ac64d6aad52918bd6b04f4d886a72b658eba Mon Sep 17 00:00:00 2001 From: yuhan6665 <1588741+yuhan6665@users.noreply.github.com> Date: Sun, 27 Jul 2025 18:27:02 -0400 Subject: [PATCH] Update prettier.yml --- .github/workflows/prettier.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index ec9ec74..76aa20c 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -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