Skip to content

Commit bd141ab

Browse files
committed
Improve submodule handling in docs workflow to prevent stale commit references
1 parent faf89a5 commit bd141ab

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/Docs.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v3
1515
with:
16-
submodules: recursive
16+
submodules: false
17+
18+
- name: Initialize and update submodule
19+
run: |
20+
git submodule update --init --remote docs
21+
cd docs
22+
git checkout master
23+
git pull origin master
24+
cd ..
1725
1826
- name: Setup PHP
1927
uses: shivammathur/setup-php@v2

0 commit comments

Comments
 (0)