Updating build script

This commit is contained in:
samo_lego 2020-11-02 08:51:57 +01:00
parent e020797d0c
commit 37b3102919
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ echo "MC_VERSION=$mcVersion" >> $GITHUB_ENV
# Checks if build is stable (I always bump version when I release stable, uploadable version) # Checks if build is stable (I always bump version when I release stable, uploadable version)
latestRelease=$(curl -s "https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest" | grep -oP '"tag_name": "\K(.*)(?=")') latestRelease=$(curl -s "https://api.github.com/repos/$GITHUB_REPOSITORY/releases" | grep -oP '(?<="tag_name": ")[^"]*' | head -n 1)
echo "Latest release is: $latestRelease" echo "Latest release is: $latestRelease"