Skip to content

Commit d2fb555

Browse files
committed
ci(update-book): the English version owns /book/index.html
The default language of the ProGit book is English, therefore https://git-scm.com/book should redirect to the table of contents of the English version of that book. This means that the `/external/book/content/book/en/_index.html` file needs to be part of the sparse checkout, otherwise the workflow run would not be able to update it (should it ever become necessary). This was not a problem so far because that file remained unchanged (and is likely to remain so for quite some time yet). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 17c47dd commit d2fb555

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/update-book.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
external/book/sync
5656
external/book/data
5757
external/book/content/book/${{ matrix.language.lang }}
58+
external/book/content/book${{ matrix.language.lang != 'en' && '/en' || '' }}
5859
external/book/static/book/${{ matrix.language.lang }}
5960
- name: clone ${{ matrix.language.repository }}
6061
run: |

0 commit comments

Comments
 (0)