Skip to content

Commit

Permalink
Fix release process?
Browse files Browse the repository at this point in the history
  • Loading branch information
kip93 committed Apr 10, 2022
1 parent 5889ef6 commit 299a68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
printf 'Changelog:\n'
if [ "${GITHUB_REF_NAME}" = 'main' ] && [ "$(git tag -l | grep -P '^v\d{2}\.\d{2}\.\d{2}\.\d{6}$' | wc -l)" -ge 2 ] ; then
LAST_TAG="$(git tag -l --sort=-version:refname | grep -P '^v\d{2}\.\d{2}\.\d{2}\.\d{6}$' | sed -n '2{p;q;}')"
elif [ "$(git tag -l | wc -l)" -ge 2 ] ; then
elif [ "${GITHUB_REF_NAME}" != 'main' ] && [ "$(git tag -l | wc -l)" -ge 2 ] ; then
LAST_TAG="$(git tag -l --sort=-version:refname | sed -n '2{p;q;}')"
else
LAST_TAG="$(git rev-list --max-parents=0 HEAD)"
Expand Down

0 comments on commit 299a68d

Please sign in to comment.