Fix release note gathering (#44)

Parse json
This commit is contained in:
Colin Seymour
2024-09-22 12:27:00 +01:00
committed by GitHub
parent 4567555071
commit 945a7c4822
+1 -1
View File
@@ -35,7 +35,7 @@ jobs:
- name: Get TeslaMate release notes
run: |
touch CHANGELOG.txt
last_release_date=$(gh release list --repo lildude/ha-addon-teslamate --limit=1 --json=publishedAt)
last_release_date=$(gh release list --repo lildude/ha-addon-teslamate --limit=1 --json=publishedAt | jq -r '.[].publishedAt')
gh pr list --repo lildude/ha-addon-teslamate --state=merged --search="Update TeslaMate 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 "## TeslaMate Release Notes" > CHANGELOG.txt