Skip to content

Commit

Permalink
Try removing quotations around PREVIOUS_VERSION var
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Jan 13, 2024
1 parent a0188d6 commit 61407f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cd_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 61407f1

Please sign in to comment.