Skip to content

Commit bf878d9

Browse files
committed
(build) fetch-depth 0 for docs workflow
1 parent 5497fb6 commit bf878d9

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/docs.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,22 @@ jobs:
2121
-
2222
name: Checkout
2323
uses: actions/checkout@v2
24+
with:
25+
fetch-depth: 0
2426
-
2527
name: Cache cake frosting
2628
id: cache-cake
2729
uses: actions/[email protected]
2830
with:
2931
path: run
3032
key: run-${{ runner.os }}-${{ hashFiles('./build/**') }}
33+
-
34+
name: Use cached tools
35+
id: cache-tools
36+
uses: actions/[email protected]
37+
with:
38+
path: tools
39+
key: tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
3140
-
3241
name: '[Prepare]'
3342
if: steps.cache-cake.outputs.cache-hit != 'true'
@@ -41,9 +50,8 @@ jobs:
4150
-
4251
name: Checkout
4352
uses: actions/checkout@v2
44-
-
45-
name: Fetch all history for all tags and branches
46-
run: git fetch --prune --unshallow
53+
with:
54+
fetch-depth: 0
4755
-
4856
name: Use cached cake frosting
4957
id: cache-cake
@@ -75,6 +83,7 @@ jobs:
7583
with:
7684
github_token: ${{ secrets.GITHUB_TOKEN }}
7785
reporter: github-pr-check
86+
7887
publish:
7988
name: Publish docs
8089
needs: [validate]
@@ -86,9 +95,8 @@ jobs:
8695
-
8796
name: Checkout
8897
uses: actions/checkout@v2
89-
-
90-
name: Fetch all history for all tags and branches
91-
run: git fetch --prune --unshallow
98+
with:
99+
fetch-depth: 0
92100
-
93101
name: Use cached cake frosting
94102
id: cache-cake

0 commit comments

Comments
 (0)