chore: fetch 2 levels of commits on doc check (#8625)
This commit is contained in:
parent
3735ef13f1
commit
fc77c1517f
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -51,6 +51,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v3.3.0
|
uses: actions/setup-node@v3.3.0
|
||||||
with:
|
with:
|
||||||
@ -73,7 +75,7 @@ jobs:
|
|||||||
- name: Check if docs need to be deployed
|
- name: Check if docs need to be deployed
|
||||||
id: needs_deploying
|
id: needs_deploying
|
||||||
run: |
|
run: |
|
||||||
if [[ $(git diff ${{ github.ref }}^ -- ./docs ./website) ]]; then
|
if [[ $(git diff HEAD^ -- ./docs ./website) ]]; then
|
||||||
needs_deploying=true
|
needs_deploying=true
|
||||||
else
|
else
|
||||||
needs_deploying=false
|
needs_deploying=false
|
||||||
@ -88,8 +90,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v3.3.0
|
uses: actions/setup-node@v3.3.0
|
||||||
with:
|
with:
|
||||||
@ -133,8 +133,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
- name: Setup cache for Chromium binary
|
- name: Setup cache for Chromium binary
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user