chore: Update update-charts workflow to exclude update_summary.txt and improve notification payload

This commit is contained in:
sha
2026-03-21 01:39:09 +02:00
parent ada3a041f3
commit cca901b52e
3 changed files with 11 additions and 11 deletions
+9 -7
View File
@@ -38,7 +38,7 @@ jobs:
run: | run: |
git config --global user.name "github-actions[bot]" git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add . git add --all -- ':!update_summary.txt'
git commit -m "chore: Automated version update for Helm charts" git commit -m "chore: Automated version update for Helm charts"
git pull --rebase origin main git pull --rebase origin main
git push git push
@@ -55,12 +55,14 @@ jobs:
exit 0 exit 0
fi fi
SUMMARY=$(cat update_summary.txt) SUMMARY=$(cat update_summary.txt)
MESSAGE="🚀 **Helm Charts Updated**\n\n$SUMMARY\n\nView changes: https://github.com/shadoll/helm-charts/commits/main" MESSAGE=$(printf '🚀 Helm Charts Updated\n\n%s\n\nView changes: https://github.com/shadoll/helm-charts/commits/main' "$SUMMARY")
PAYLOAD=$(jq -n \
--arg msg "$MESSAGE" \
--arg num "$SIGNAL_SENDER" \
--arg rec "$SIGNAL_RECIPIENT" \
'{message: $msg, number: $num, recipients: [$rec]}')
curl -X POST "$SIGNAL_URL" \ curl -X POST "$SIGNAL_URL" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{ -d "$PAYLOAD"
\"message\": \"$MESSAGE\",
\"number\": \"$SIGNAL_SENDER\",
\"recipients\": [\"$SIGNAL_RECIPIENT\"]
}"
+1
View File
@@ -27,3 +27,4 @@ charts/*/tmpcharts/
# Temporary files # Temporary files
tmp/ tmp/
*.bak *.bak
update_summary.txt
-3
View File
@@ -1,3 +0,0 @@
- **esphome**: 2026.2.4 ➔ 2026.3.0 (Chart v0.1.1)
- **home-assistant**: 2026.3.1 ➔ 2026.3.3 (Chart v0.1.8)