Skip to content

Your home as a live 3D model in the Mac menu bar and on iPhone — lights and ACs via Smart Life, Home Assistant, Philips Hue and Apple Home.

Release notes: join wrapped lines, absolute link to the widgets doc

0xProbability1b4d3fb0138b
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 44283e9..1e82728 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -93,7 +93,9 @@ jobs:
VERSION: ${{ steps.version.outputs.version }}
run: |
# The notes are this version's section of CHANGELOG.md, or GitHub's list of commits without one.
- awk -v v="$VERSION" '$0 ~ "^## " { if (on) exit; on = index($0, "## " v " ") == 1; next } on' CHANGELOG.md > build/notes.md
+ # Lines wrapped inside a list item are joined: release notes keep every line break.
+ awk -v v="$VERSION" '$0 ~ "^## " { if (on) exit; on = index($0, "## " v " ") == 1; next } on' CHANGELOG.md |
+ perl -0pe 's/\n {2,}(?=\S)/ /g' > build/notes.md
if [ -s build/notes.md ]; then
printf '\n**Full changelog:** [CHANGELOG.md](%s/%s/blob/%s/CHANGELOG.md)\n' \
"$GITHUB_SERVER_URL" "$GITHUB_REPOSITORY" "$GITHUB_REF_NAME" >> build/notes.md
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0991d04..2ad7cd1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,7 +13,7 @@ What changed in each release of House Control. The Mac app is on
- **Quick actions** on the iPhone's app icon, chosen in Settings.
- Every widget is live: tap a lamp, a scene or an AC and it switches without opening the app. On the Mac the app in
the menu bar carries it out; on the iPhone the widget talks to Home Assistant, Hue and Smart Life itself.
- See [docs/widgets.md](docs/widgets.md).
+ See [docs/widgets.md](https://github.com/0xProbabillity/house-control/blob/main/docs/widgets.md).
### An iPhone app that needs no Mac