Include deployment changes in Telegram notifications

This commit is contained in:
2026-06-02 21:22:39 -07:00
parent 5e30794db1
commit e567821e07
+28
View File
@@ -30,6 +30,30 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Collect release notes
id: release-notes
run: |
set -euo pipefail
if [ "${{ github.event_name }}" = "push" ] && [ "${{ github.event.before }}" != "0000000000000000000000000000000000000000" ]; then
RANGE="${{ github.event.before }}..${{ github.sha }}"
else
RANGE="-5"
fi
NOTES="$(git log "$RANGE" --pretty=format:'- %h %s' --no-merges | head -20)"
if [ -z "$NOTES" ]; then
NOTES="$(git log -1 --pretty=format:'- %h %s')"
fi
{
echo "notes<<EOF"
echo "$NOTES"
echo "EOF"
} >> "$GITHUB_OUTPUT"
- name: Setup Go
uses: actions/setup-go@v5
@@ -187,6 +211,8 @@ jobs:
Commit: ${{ github.sha }}
Actor: ${{ github.actor }}
Image: ${{ env.IMAGE_NAME }}:${{ github.sha }}
Updates:
${{ steps.release-notes.outputs.notes }}
Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
EOF
)"
@@ -213,6 +239,8 @@ jobs:
Commit: ${{ github.sha }}
Actor: ${{ github.actor }}
Image: ${{ env.IMAGE_NAME }}:${{ github.sha }}
Updates:
${{ steps.release-notes.outputs.notes }}
Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
EOF
)"