From fc77c1517fb1dd9a3cc107f6eb4dcb5a1ea82997 Mon Sep 17 00:00:00 2001 From: jrandolf <101637635+jrandolf@users.noreply.github.com> Date: Tue, 5 Jul 2022 11:04:46 +0200 Subject: [PATCH] chore: fetch 2 levels of commits on doc check (#8625) --- .github/workflows/ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd6f365705d..b54845f7dac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,6 +51,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 2 - name: Set up Node.js uses: actions/setup-node@v3.3.0 with: @@ -73,7 +75,7 @@ jobs: - name: Check if docs need to be deployed id: needs_deploying run: | - if [[ $(git diff ${{ github.ref }}^ -- ./docs ./website) ]]; then + if [[ $(git diff HEAD^ -- ./docs ./website) ]]; then needs_deploying=true else needs_deploying=false @@ -88,8 +90,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - with: - fetch-depth: 2 - name: Set up Node.js uses: actions/setup-node@v3.3.0 with: @@ -133,8 +133,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - with: - fetch-depth: 2 - name: Setup cache for Chromium binary uses: actions/cache@v3 with: