chore: fetch 2 levels of commits on doc check (#8625)

This commit is contained in:
jrandolf 2022-07-05 11:04:46 +02:00 committed by GitHub
parent 3735ef13f1
commit fc77c1517f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: