From 972f3f09b5663725bb8883891bbe475b47ab262f Mon Sep 17 00:00:00 2001 From: Colin Seymour Date: Sun, 22 Sep 2024 12:25:47 +0100 Subject: [PATCH] Improve release notes gathering (#81) --- .github/workflows/releaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 1162725..557f8d7 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -35,7 +35,7 @@ jobs: - name: Get Ghostfolio release notes run: | touch CHANGELOG.txt - last_release_date=$(gh release list --repo lildude/ha-addon-ghostfolio --limit=1 --json=publishedAt) + last_release_date=$(gh release list --repo lildude/ha-addon-ghostfolio --limit=1 --json=publishedAt | jq -r '.[].publishedAt') gh pr list --repo lildude/ha-addon-ghostfolio --state=merged --search="Update Ghostfolio in:title closed:>$last_release_date" --limit=1 --json=body --jq '.[].body' | sed -n "/<\/summary>/,/<\/details>/p" | sed '1d;$d' > changelog.tmp if [ -s changelog.tmp ]; then echo "## Ghostfolio Release Notes" > CHANGELOG.txt