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