diff --git a/.github/workflows/update-charts.yml b/.github/workflows/update-charts.yml index 953a646..9787756 100644 --- a/.github/workflows/update-charts.yml +++ b/.github/workflows/update-charts.yml @@ -38,7 +38,7 @@ jobs: run: | git config --global user.name "github-actions[bot]" 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 pull --rebase origin main git push @@ -55,12 +55,14 @@ jobs: exit 0 fi 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" \ -H "Content-Type: application/json" \ - -d "{ - \"message\": \"$MESSAGE\", - \"number\": \"$SIGNAL_SENDER\", - \"recipients\": [\"$SIGNAL_RECIPIENT\"] - }" + -d "$PAYLOAD" diff --git a/.gitignore b/.gitignore index cfc9b64..0e6495d 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ charts/*/tmpcharts/ # Temporary files tmp/ *.bak +update_summary.txt diff --git a/update_summary.txt b/update_summary.txt deleted file mode 100644 index e457c61..0000000 --- a/update_summary.txt +++ /dev/null @@ -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)