Skip to content

Commit

Permalink
chore: fetch 2 levels of commits on doc check (#8625)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Jul 5, 2022
1 parent 3735ef1 commit fc77c15
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit fc77c15

Please sign in to comment.