From b645d0866d7178be48cd35c6bb3952707fdb377d Mon Sep 17 00:00:00 2001 From: Patrik Ragnarsson Date: Mon, 8 May 2023 13:20:34 +0200 Subject: [PATCH] Fix release notes generation on GitHub Actions Seems like an issue with the checkout action: https://github.com/actions/checkout/issues/290 Found this tip at https://github.com/actions/checkout/issues/272#issuecomment-1184535098 [ci skip] --- generate-release-notes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate-release-notes b/generate-release-notes index 083eeb41d3..28b9d25b00 100755 --- a/generate-release-notes +++ b/generate-release-notes @@ -1,6 +1,6 @@ #!/bin/sh -LATEST_TAG=${GITHUB_REF_NAME:-$(git describe --abbrev=0)} -PREV_TAG=$(git describe --abbrev=0 "${LATEST_TAG}~") +LATEST_TAG=${GITHUB_REF_NAME:-$(git describe --tags --abbrev=0)} +PREV_TAG=$(git describe --tags --abbrev=0 "${LATEST_TAG}~") TAG_BODY=$(git tag --list --format='%(body)' "$LATEST_TAG") echo "$TAG_BODY" | sed '/^-----BEGIN PGP/,/^-----END PGP/d' echo