From 7bd42573e0dd8dea40b5c054981c3f262d37cfe8 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Thu, 22 Aug 2024 11:46:07 -0400 Subject: [PATCH] [CI] Adjust submodule DEPTH --- .github/workflows/auto-update-versions.yml | 2 +- .github/workflows/pr-actions.yml | 2 +- package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-update-versions.yml b/.github/workflows/auto-update-versions.yml index dd0d472476f6..1f36571febe8 100644 --- a/.github/workflows/auto-update-versions.yml +++ b/.github/workflows/auto-update-versions.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-20.04 if: github.repository == 'open-telemetry/opentelemetry.io' env: - DEPTH: --depth 500 # submodule clone depth + DEPTH: --depth 999 # submodule clone depth steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/pr-actions.yml b/.github/workflows/pr-actions.yml index 57fffbee6d7a..28fdb9a22071 100644 --- a/.github/workflows/pr-actions.yml +++ b/.github/workflows/pr-actions.yml @@ -23,7 +23,7 @@ jobs: pull-requests: write env: - DEPTH: --depth 1000 # submodule clone depth + DEPTH: --depth 999 # submodule clone depth steps: - name: Extract action name diff --git a/package.json b/package.json index b737502604d4..5fc18e6f4a12 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "_filename-error": "echo 'ERROR: the following files violate naming conventions; fix using: `npm run fix:filenames`'; echo; npm run -s _ls-bad-filenames; exit 1", "_get:no": "echo SKIPPING get operation", "_get:submodule:non-lang": "npm run _get:submodule -- content-modules/opentelemetry-specification themes/docsy", - "_get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}", + "_get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 999}", "_hugo": "hugo --cleanDestinationDir", "_install:dict": "npm install -D $(npm run -s _list:dict)", "_install:netlify-cli": "npm list netlify-cli || npm install -O netlify-cli", @@ -108,7 +108,7 @@ "update:other-pkg": "npm install --save-dev gulp@latest", "update:pkgs": "npx npm-check-updates -u", "update:submodule:lang": "npm run seq -- update:submodule _get:submodule:non-lang", - "update:submodule": "set -x && git submodule update --remote ${DEPTH:- --depth 1}" + "update:submodule": "set -x && git submodule update --remote ${DEPTH:- --depth 999}" }, "devDependencies": { "@cspell/dict-es-es": "^3.0.0",