Update update-version.yml

This commit is contained in:
Igor Pečovnik
2022-01-12 12:39:52 +01:00
committed by GitHub
parent 0df2e9f89f
commit 9fdd80776d

View File

@@ -81,7 +81,6 @@ jobs:
git symbolic-ref --short -q HEAD
if [[ "$(git symbolic-ref --short -q HEAD)" == nightly ]]; then
CURRENT_VERSION=$(cat VERSION)
CURRENT_VERSION="22.02.0"
NEW_VERSION="${CURRENT_VERSION%%-trunk}"
if [[ "$CURRENT_VERSION" == *trunk* ]]; then
VALUE=$(echo $NEW_VERSION | cut -d"." -f4 | sed 's/^0*//')
@@ -92,8 +91,7 @@ jobs:
sudo git checkout -f
sudo chown -R $USER:$USER .git
git pull
echo "${NEW_VERSION}"
#> VERSION
echo "${NEW_VERSION}" > VERSION
git config --global user.email "info@armbian.com"
git config --global user.name "Armbianworker"
git add VERSION