From 777d6300a868a01a8e369d25e6154c62beb399c3 Mon Sep 17 00:00:00 2001 From: max Date: Fri, 25 Sep 2026 22:37:32 +0200 Subject: [PATCH] ci: enable recursive submodule checkout and fallback init in ci and release workflows --- .gitea/workflows/ci.yml | 10 ++++++++++ .gitea/workflows/release.yml | 11 +++++++++++ 2 files changed, 21 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 96fd16c..19bd680 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -19,6 +19,16 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v4 + with: + submodules: recursive + token: ${{ secrets.TAG_TOKEN || secrets.GITEA_TOKEN || github.token }} + fetch-depth: 0 + + - name: Ensure Submodules Initialized + run: | + if [ ! -f LOGAR-LICENSING/License_Authority.py ]; then + git submodule update --init --recursive || true + fi - name: Install Dependencies run: | diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 8199f01..3979af2 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -18,6 +18,16 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v4 + with: + submodules: recursive + token: ${{ secrets.TAG_TOKEN || secrets.GITEA_TOKEN || github.token }} + fetch-depth: 0 + + - name: Ensure Submodules Initialized + run: | + if [ ! -f LOGAR-LICENSING/License_Authority.py ]; then + git submodule update --init --recursive || true + fi - name: Install Python and Build Dependencies run: | @@ -62,6 +72,7 @@ jobs: } git fetch --depth 1 origin "${{ github.sha }}" git checkout -f FETCH_HEAD + git submodule update --init --recursive - name: Install Dependencies shell: powershell