From a7e9d29ed2aea4081124d3a3bc1fd603faf01a70 Mon Sep 17 00:00:00 2001 From: Georgy Malkov Date: Wed, 25 Oct 2023 17:25:32 +0200 Subject: [PATCH] Ignore minor release on publish (#20) --- .github/workflows/publish_platform.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_platform.yaml b/.github/workflows/publish_platform.yaml index 1a8aaa29..25ad15ff 100644 --- a/.github/workflows/publish_platform.yaml +++ b/.github/workflows/publish_platform.yaml @@ -29,7 +29,7 @@ jobs: run: | COMMIT_NAME=$(git log -n 1 --pretty=format:%s) - LAST_RELEASE_VERSION=$(curl -L https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq -r '.|=sort_by(.name|ltrimstr("v")|split(".")|map(tonumber))|.[-1].name' | sed 's|v||') + LAST_RELEASE_VERSION=$(curl -L https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq -r '.|=sort_by(.name|ltrimstr("v")|split(".")|map(tonumber)|[.[0],.[1],-.[2]])|.[-1].name' | sed 's|v||') echo "Last release version: ${LAST_RELEASE_VERSION}" MAIN_COMMIT=$(git rev-parse origin/main)