diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index b44f0af32..2eab2a3c5 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -20,6 +20,8 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: ⬇️ Checkout repo uses: actions/checkout@v3 + with: + submodules: recursive - name: 🆚 Get the version id: get_version diff --git a/packages/otlp-importer/package.json b/packages/otlp-importer/package.json index a5d13fc27..ee0875e4e 100644 --- a/packages/otlp-importer/package.json +++ b/packages/otlp-importer/package.json @@ -32,7 +32,7 @@ "generate": "npm run protos", "protos": "npm run submodule && npm run protos:generate", "protos:generate": "./scripts/generate-protos.sh", - "submodule": "git submodule sync --recursive && git submodule update --init --recursive", + "submodule": "command -v git >/dev/null 2>&1 && git submodule sync --recursive && git submodule update --init --recursive || echo 'git not installed'", "typecheck": "tsc --noEmit", "test": "jest" },