mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-08-28 03:27:08 +00:00
chore: Update update-charts workflow to exclude update_summary.txt and improve notification payload
This commit is contained in:
@@ -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\"]
|
|
||||||
}"
|
|
||||||
|
|||||||
@@ -27,3 +27,4 @@ charts/*/tmpcharts/
|
|||||||
# Temporary files
|
# Temporary files
|
||||||
tmp/
|
tmp/
|
||||||
*.bak
|
*.bak
|
||||||
|
update_summary.txt
|
||||||
|
|||||||
@@ -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)
|
|
||||||
Reference in New Issue
Block a user