mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-11 02:52:56 +01:00
Merge branch 'sh-fix-danger' into 'master'
Fix Danger job failing due to missing NODE_INSTALL_VERSION See merge request https://gitlab.com/gitlab-org/gitlab-build-images/-/merge_requests/657 Merged-by: Balasankar 'Balu' C <balasankar@gitlab.com> Approved-by: Balasankar 'Balu' C <balasankar@gitlab.com> Co-authored-by: Stan Hu <stanhu@gmail.com>
This commit is contained in:
commit
b5448b8540
1 changed files with 3 additions and 0 deletions
|
|
@ -2,6 +2,9 @@
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
NODE_INSTALL_VERSION=${1}
|
||||||
|
YARN_INSTALL_VERSION=${2}
|
||||||
|
|
||||||
# Map MAJOR.MINOR.patch -> MAJOR.x
|
# Map MAJOR.MINOR.patch -> MAJOR.x
|
||||||
NODE_MAJOR=$(echo "$NODE_INSTALL_VERSION" | sed -r -e "s/([0-9]+)\.[0-9]+.*/\1\.x/g")
|
NODE_MAJOR=$(echo "$NODE_INSTALL_VERSION" | sed -r -e "s/([0-9]+)\.[0-9]+.*/\1\.x/g")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue