From 61407f12de8c599812bae87545fdee6b8fa28d63 Mon Sep 17 00:00:00 2001 From: Casper Welzel Andersen Date: Sat, 13 Jan 2024 23:20:27 +0100 Subject: [PATCH] Try removing quotations around PREVIOUS_VERSION var --- .github/workflows/cd_release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd_release.yml b/.github/workflows/cd_release.yml index f744ae21..1745e779 100644 --- a/.github/workflows/cd_release.yml +++ b/.github/workflows/cd_release.yml @@ -289,6 +289,8 @@ jobs: - name: Get tagged versions run: | + set -x + if [ -n "${{ inputs.changelog_exclude_tags_regex }}" ]; then PREVIOUS_VERSION="$(git tag -l --sort -version:refname | grep -v -E "${{ inputs.changelog_exclude_tags_regex }}" | sed -n 2p)" else @@ -298,7 +300,7 @@ jobs: echo "PREVIOUS_VERSION=${PREVIOUS_VERSION}" if [ -n "${PREVIOUS_VERSION}" ]; then - SINCE_PREVIOUS_VERSION=--since-tag "${PREVIOUS_VERSION}" + SINCE_PREVIOUS_VERSION=--since-tag ${PREVIOUS_VERSION} else SINCE_PREVIOUS_VERSION= fi