Skip to content

Commit 9ecec20

Browse files
authored
[CI] Adjust submodule DEPTH uniformly across scripts (#5088)
1 parent 124e5fe commit 9ecec20

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/auto-update-versions.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-20.04
1313
if: github.repository == 'open-telemetry/opentelemetry.io'
1414
env:
15-
DEPTH: --depth 500 # submodule clone depth
15+
DEPTH: --depth 999 # submodule clone depth
1616

1717
steps:
1818
- uses: actions/checkout@v4

.github/workflows/pr-actions.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
pull-requests: write
2424

2525
env:
26-
DEPTH: --depth 1000 # submodule clone depth
26+
DEPTH: --depth 999 # submodule clone depth
2727

2828
steps:
2929
- name: Extract action name

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"_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",
2424
"_get:no": "echo SKIPPING get operation",
2525
"_get:submodule:non-lang": "npm run _get:submodule -- content-modules/opentelemetry-specification themes/docsy",
26-
"_get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}",
26+
"_get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 999}",
2727
"_hugo": "hugo --cleanDestinationDir",
2828
"_install:dict": "npm install -D $(npm run -s _list:dict)",
2929
"_install:netlify-cli": "npm list netlify-cli || npm install -O netlify-cli",
@@ -108,7 +108,7 @@
108108
"update:other-pkg": "npm install --save-dev gulp@latest",
109109
"update:pkgs": "npx npm-check-updates -u",
110110
"update:submodule:lang": "npm run seq -- update:submodule _get:submodule:non-lang",
111-
"update:submodule": "set -x && git submodule update --remote ${DEPTH:- --depth 1}"
111+
"update:submodule": "set -x && git submodule update --remote ${DEPTH:- --depth 999}"
112112
},
113113
"devDependencies": {
114114
"@cspell/dict-es-es": "^3.0.0",

0 commit comments

Comments
 (0)