From 37b31029196155cfec3de022fee127c72dea82f3 Mon Sep 17 00:00:00 2001 From: samo_lego <34912839+samolego@users.noreply.github.com> Date: Mon, 2 Nov 2020 08:51:57 +0100 Subject: [PATCH] Updating build script --- .github/workflows/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.sh b/.github/workflows/main.sh index 0a145b7..277b6ca 100644 --- a/.github/workflows/main.sh +++ b/.github/workflows/main.sh @@ -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) -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"