File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33validate_version () {
44 local version=" $1 "
55 if [[ ! " $version " =~ ^[0-9]+\. [0-9]+\. [0-9]+ (-pre.* )? $ ]]; then
6- echo " ::error::Invalid version format in VERSION file . Expected: X.Y.Z or X.Y.Z-pre*"
6+ echo " ::error::Invalid version ' $version ' in $( realpath VERSION ) . Expected: X.Y.Z or X.Y.Z-pre*"
77 return 1
88 fi
99 return 0
1010}
1111
1212version=$( cat VERSION 2> /dev/null)
1313if [ -z " $version " ]; then
14- echo " ::error::VERSION file not found or empty"
14+ echo " ::error::No VERSION file found or empty in $PWD "
1515 exit 1
1616fi
1717
Original file line number Diff line number Diff line change @@ -30,22 +30,14 @@ jobs:
3030 cmakeVersion : 3.24.1
3131 ninjaVersion : latest
3232
33- - name : Ensure source code revision
34- run : scripts/ensure-code-revision.sh
35- working-directory : platform/android
36- shell : bash
37-
3833 - name : npm install
3934 run : npm install --ignore-scripts
40- working-directory : platform/android
4135
4236 - name : Android nitpick
4337 run : make run-android-nitpick
4438
4539 - name : Validate and set version
46- working-directory : platform/android
47- run : |
48- ../../.github/scripts/validate-version.sh
40+ run : ../../.github/scripts/validate-version.sh
4941
5042 - name : Build package
5143 run : |
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments