Skip to content
代码片段 群组 项目

Draft: Remove unnecessary git fetch in duplicated-dependency-check job

已关闭 Kun Qian requested to merge remove-unnecessary-git-fetch-in-ci into main-jh
2 文件
+ 2
2
比较变更
  • 并排
  • 内联
文件
2
@@ -4,8 +4,6 @@ duplicated-dependency-check:
@@ -4,8 +4,6 @@ duplicated-dependency-check:
- .duplicated-dependency-check:rules
- .duplicated-dependency-check:rules
script:
script:
- apt-get update && apt-get install -y jq
- apt-get update && apt-get install -y jq
- git fetch origin master
- git fetch origin ${CI_DEFAULT_BRANCH}
- git checkout origin/master package.json
- git checkout origin/master package.json
- |
- |
duplicatedDep=$(jq '.dependencies + .devDependencies | keys | map(select(in($upstreamjson.dependencies) or in($upstreamjson.devDependencies)))' ./jh/frontend.json --argfile jhjson ./jh/frontend.json --argfile upstreamjson package.json);
duplicatedDep=$(jq '.dependencies + .devDependencies | keys | map(select(in($upstreamjson.dependencies) or in($upstreamjson.devDependencies)))' ./jh/frontend.json --argfile jhjson ./jh/frontend.json --argfile upstreamjson package.json);
加载中