From a0d09abcc1ea301256e76b91396e07b22172617e Mon Sep 17 00:00:00 2001 From: Vadim Date: Sat, 2 Sep 2023 12:20:12 +0200 Subject: [PATCH] Update increment_build_number.sh --- .github/scripts/increment_build_number.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/scripts/increment_build_number.sh b/.github/scripts/increment_build_number.sh index cd2f60c..520455f 100644 --- a/.github/scripts/increment_build_number.sh +++ b/.github/scripts/increment_build_number.sh @@ -1,6 +1,7 @@ export newVersion="$1" if [[ -n "$newVersion" ]]; then + #https://stackoverflow.com/a/30214769/13167574 perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+)(\+)(\d+)$/$1.$ENV{'newVersion'}.$3.($4+1)/e' pubspec.yaml else echo "argument error"