Skip to content

Commit

Permalink
[CI] Adjust submodule DEPTH uniformly across scripts (open-telemetry#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Aug 22, 2024
1 parent 124e5fe commit 9ecec20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-update-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 9ecec20

Please sign in to comment.