From 16f5ff22defd4e86f3f57392fe49dbdf12c387f8 Mon Sep 17 00:00:00 2001 From: Bacteriawa Date: Thu, 9 Jul 2026 18:51:02 +0800 Subject: [PATCH] Checkout submodules recursively in workflows Add 'submodules: recursive' to the actions/checkout step in build-pr.yml, build.yml, and publish-api.yml so CI jobs fetch repository submodules. This ensures submodules are available during builds and aligns checkout configuration across workflows (keeping fetch-depth: 0 where already set). --- .github/workflows/build-pr.yml | 2 ++ .github/workflows/build.yml | 1 + .github/workflows/publish-api.yml | 1 + 3 files changed, 4 insertions(+) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 21163ab..40eafd8 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -11,6 +11,8 @@ jobs: steps: - name: Checkout Git Repository uses: actions/checkout@v7 + with: + submodules: recursive - name: Set Up JDK uses: actions/setup-java@v5 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad58069..e89100c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,7 @@ jobs: uses: actions/checkout@v7 with: fetch-depth: 0 + submodules: recursive - name: Get Branch Build Number run: | diff --git a/.github/workflows/publish-api.yml b/.github/workflows/publish-api.yml index 150f074..2ca086c 100644 --- a/.github/workflows/publish-api.yml +++ b/.github/workflows/publish-api.yml @@ -15,6 +15,7 @@ jobs: uses: actions/checkout@v7 with: fetch-depth: 0 + submodules: recursive - name: Get Branch Build Number run: |