Skip to content

Commit

Permalink
Merge pull request #55 from MeteoSwiss/develop_vof
Browse files Browse the repository at this point in the history
Improve the regex for the version
  • Loading branch information
fpavogt authored Jan 21, 2022
2 parents d6b865a + a79b793 commit f08b80f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/CI_check_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#
# It is triggered for any PR to the master branch.
#
# Warning: the code version must *absolutely* follow a semantic approach, i.e.:
# 10.0.1, 10.0.2.dev0 is valid
# 10.0, 10, is NOT valid !
#
# Copyright (c) 2022 fpavogt; [email protected]

name: CI_check_version
Expand Down Expand Up @@ -43,9 +47,9 @@ jobs:

- name: Check if the version was increased
run: |
HEAD_VERSION="$(grep VERSION head_version.tmp | grep -o '[[:alnum:]]*\.[[:alnum:]]*\.[[:alnum:]]*')"
HEAD_VERSION="$(grep VERSION head_version.tmp | grep -o '[[:alnum:]]*\.[[:alnum:]]*\.[[:alnum:]]*\.\?[[:alnum:]]*')"
echo "HEAD_VERSION:" $HEAD_VERSION
BASE_VERSION="$(grep VERSION base_version.tmp | grep -o '[[:alnum:]]*\.[[:alnum:]]*\.[[:alnum:]]*')"
BASE_VERSION="$(grep VERSION base_version.tmp | grep -o '[[:alnum:]]*\.[[:alnum:]]*\.[[:alnum:]]*\.\?[[:alnum:]]*')"
echo "BASE_VERSION:" $BASE_VERSION
python ./.github/workflows/check_version.py $HEAD_VERSION $BASE_VERSION
shell: bash

0 comments on commit f08b80f

Please sign in to comment.