Commit af47d410 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

CI: update path in check_version job. Will fail on initial merge

parent e6892d50
#!/usr/bin/env bash
set -e
git fetch origin master
thisver=$( cat fsl/installer/fslinstaller.py |
grep "__version__ = " |
cut -d " " -f 3 |
tr -d "'")
masterver=$(git show origin/master:fsl/installer/fslinstaller.py |
grep "__version__ = " |
cut -d " " -f 3 |
tr -d "'")
if [ "$thisver" = "$masterver" ]; then
echo "Version has not been updated!"
echo "Version on master branch: $masterver"
echo "Version in this MR: $thisver"
echo "The version number must be updated before this MR can be merged."
exit 1
else
echo "Version on master branch: $masterver"
echo "Version in this MR: $thisver"
fi
......@@ -102,20 +102,7 @@ check-version:
rules:
- if: '$CI_COMMIT_TAG == null && $CI_COMMIT_BRANCH != "master"'
script:
- git fetch origin master
- thisver=$( cat fslinstaller.py | grep "__version__ = " | cut -d " " -f 3 | tr -d "'")
- masterver=$(git show origin/master:fslinstaller.py | grep "__version__ = " | cut -d " " -f 3 | tr -d "'")
- |
if [ "$thisver" = "$masterver" ]; then
echo "Version has not been updated!"
echo "Version on master branch: $masterver"
echo "Version in this MR: $thisver"
echo "The version number must be updated before this MR can be merged."
exit 1
else
echo "Version on master branch: $masterver"
echo "Version in this MR: $thisver"
fi
- bash ./.ci/check_version.sh
release-new-version:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment