From 8a055f76b0f86591d6c72022d123e1b7e8635825 Mon Sep 17 00:00:00 2001 From: ronahk Date: Thu, 19 Jan 2023 16:26:40 +0200 Subject: [PATCH] update workflow --- .github/workflows/release-and-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index 3ce3c36..85adcd7 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -30,7 +30,7 @@ jobs: if ! [[ "$bump" =~ ^(major|minor|patch) ]]; then echo "Not a release commit" && exit 0; fi; echo $bump > bump.txt cat bump.txt - current="0.0.0" + current=$(gh release list | awk '{print $1}' | awk 'NR==1' | sed s/v//g) next_version=$(semver-cli inc $bump $current) echo "next_version is now $next_version"