Skip to content

Commit a7433c5

Browse files
author
Timothy Dodd
committed
Enable recursive submodule checkout in CI jobs
Updated the `actions/checkout@v4` step in both the `build-backend` and `docker-build` jobs to include the `submodules: recursive` option. This ensures that Git submodules are properly initialized and updated during the CI workflow. These changes are critical for projects that rely on submodules for external dependencies or shared code.
1 parent 85a6c2b commit a7433c5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
build-backend:
1616
name: Build Backend
1717
runs-on: ubuntu-latest
18-
18+
1919
steps:
2020
- name: Checkout repository
2121
uses: actions/checkout@v4
22+
with:
23+
submodules: recursive
2224

2325
- name: Setup .NET
2426
uses: actions/setup-dotnet@v4
@@ -73,10 +75,12 @@ jobs:
7375
runs-on: ubuntu-latest
7476
needs: [build-backend, build-frontend]
7577
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
76-
78+
7779
steps:
7880
- name: Checkout repository
7981
uses: actions/checkout@v4
82+
with:
83+
submodules: recursive
8084

8185
- name: Set up Docker Buildx
8286
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)