Skip to content

Commit f2ab05d

Browse files
committed
checkout the repo in the workflow not in the composite action
1 parent f660888 commit f2ab05d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/github-pages-mkdocs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
if: github.event_name == 'pull_request'
2121
runs-on: ubuntu-latest
2222
steps:
23+
- uses: actions/checkout@v5
24+
with:
25+
fetch-depth: 0
26+
2327
- uses: Serapieum-of-alex/github-actions/actions/mkdocs-deploy@mkdocs/v1
2428
with:
2529
trigger: 'pull_request'
@@ -32,6 +36,9 @@ jobs:
3236
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
3337
runs-on: ubuntu-latest
3438
steps:
39+
- uses: actions/checkout@v5
40+
with:
41+
fetch-depth: 0
3542
- uses: Serapieum-of-alex/github-actions/actions/mkdocs-deploy@main
3643
with:
3744
trigger: 'main'
@@ -44,6 +51,9 @@ jobs:
4451
if: github.event_name == 'release'
4552
runs-on: ubuntu-latest
4653
steps:
54+
- uses: actions/checkout@v5
55+
with:
56+
fetch-depth: 0
4757
- uses: Serapieum-of-alex/github-actions/actions/mkdocs-deploy@main
4858
with:
4959
trigger: 'release'

0 commit comments

Comments
 (0)