fix typo in version string (#9516)
This commit is contained in:
parent
631df0fe56
commit
67066eb32a
@ -46,7 +46,7 @@ cache:
|
|||||||
- >
|
- >
|
||||||
VERSION="$(sed -r -n '1,/^version/s/^version = "([^"]+)".*$/\1/p' < Cargo.toml)";
|
VERSION="$(sed -r -n '1,/^version/s/^version = "([^"]+)".*$/\1/p' < Cargo.toml)";
|
||||||
if [ "${CI_COMMIT_REF_NAME}" = "nightly" ]; then
|
if [ "${CI_COMMIT_REF_NAME}" = "nightly" ]; then
|
||||||
COMMIT_REF_SHORT="echo ${CI_COMMIT_REF} | grep -oE '^.{7}')";
|
COMMIT_REF_SHORT="$(echo ${CI_COMMIT_REF} | grep -oE '^.{7}')";
|
||||||
DATE_STRING="$(date +%Y%m%d)";
|
DATE_STRING="$(date +%Y%m%d)";
|
||||||
export VERSION="${VERSION}-${COMMIT_REF_SHORT}-${DATE_STRING}";
|
export VERSION="${VERSION}-${COMMIT_REF_SHORT}-${DATE_STRING}";
|
||||||
fi;
|
fi;
|
||||||
|
Loading…
Reference in New Issue
Block a user