From 05f5c45bdc2478eea35f539f8d1994f7dc6b8b9c Mon Sep 17 00:00:00 2001 From: Pavel Kotelevsky Date: Thu, 5 Oct 2023 18:35:13 +0200 Subject: [PATCH] build: fix changelog --- .github/workflows/RELEASE.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/RELEASE.yaml b/.github/workflows/RELEASE.yaml index 00f8e8d675..011042f1e4 100644 --- a/.github/workflows/RELEASE.yaml +++ b/.github/workflows/RELEASE.yaml @@ -89,9 +89,9 @@ jobs: id: get_previous_tag run: | if [[ ${{steps.check_prerelease.outputs.isPreRelease}} == "true" ]]; then - TAG_NAME=$(git --no-pager tag --sort=-creatordate | head -1) + TAG_NAME=$(git --no-pager tag --sort=-creatordate | head -2 | tail -1) else - TAG_NAME=$(git --no-pager tag --sort=-creatordate | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -1) + TAG_NAME=$(git --no-pager tag --sort=-creatordate | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -2 | tail -1) fi echo "previousTag: $TAG_NAME" echo "previousTag=${TAG_NAME}" >> $GITHUB_OUTPUT