File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ if [ "${NEWVERS/-*/}" = "0.0.0" ] ; then
2727 echo " Illegal zero version '${NEWVERS} '" 1>&2
2828 exit 1
2929fi
30- # Sanity check: Must start with a valid semver.
31- if ! [[ ${NEWVERS} =~ ^(0| [1-9][0-9]* )\. (0| [1-9][0-9]* )\. (0| [1-9][0-9]* )(-(( 0 | [1 - 9 ][0 - 9 ]*| [0 - 9 ]* [a- zA- Z- ][0 - 9 a- zA- Z- ]* )(\.(0 | [1 - 9 ][0 - 9 ]*| [0 - 9 ]* [a- zA- Z- ][0 - 9 a- zA- Z- ]* )) * ))? (\+ ([0-9a-zA-Z-]+ (\. [0-9a-zA-Z-]+)* ))? ]] ; then
30+ # Sanity check: Must start with a valid semver, with an optional leading "v" .
31+ if ! [[ ${NEWVERS} =~ ^v ? (0| [1-9][0-9]* )\. (0| [1-9][0-9]* )\. (0| [1-9][0-9]* )(-(( 0 | [1 - 9 ][0 - 9 ]*| [0 - 9 ]* [a- zA- Z- ][0 - 9 a- zA- Z- ]* )(\.(0 | [1 - 9 ][0 - 9 ]*| [0 - 9 ]* [a- zA- Z- ][0 - 9 a- zA- Z- ]* )) * ))? (\+ ([0-9a-zA-Z-]+ (\. [0-9a-zA-Z-]+)* ))? ]] ; then
3232 echo " Invalid version '${NEWVERS} '" 1>&2
3333 exit 1
3434fi
Original file line number Diff line number Diff line change 1616 update :
1717 runs-on : ubuntu-20.04
1818 steps :
19- - uses : actions/setup-python@v3
19+ - uses : actions/setup-python@v4
20+ with :
21+ python-version : 3.x
2022 - name : Install JSON tools
2123 run : pip3 install jsonpatch pyyaml
2224 - name : Build yaml2json, json2yaml
You can’t perform that action at this time.
0 commit comments