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
+10 -8
View File
@@ -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"