Include deployment changes in Telegram notifications
This commit is contained in:
@@ -30,6 +30,30 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
@@ -187,6 +211,8 @@ jobs:
|
|||||||
Commit: ${{ github.sha }}
|
Commit: ${{ github.sha }}
|
||||||
Actor: ${{ github.actor }}
|
Actor: ${{ github.actor }}
|
||||||
Image: ${{ env.IMAGE_NAME }}:${{ github.sha }}
|
Image: ${{ env.IMAGE_NAME }}:${{ github.sha }}
|
||||||
|
Updates:
|
||||||
|
${{ steps.release-notes.outputs.notes }}
|
||||||
Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
EOF
|
EOF
|
||||||
)"
|
)"
|
||||||
@@ -213,6 +239,8 @@ jobs:
|
|||||||
Commit: ${{ github.sha }}
|
Commit: ${{ github.sha }}
|
||||||
Actor: ${{ github.actor }}
|
Actor: ${{ github.actor }}
|
||||||
Image: ${{ env.IMAGE_NAME }}:${{ github.sha }}
|
Image: ${{ env.IMAGE_NAME }}:${{ github.sha }}
|
||||||
|
Updates:
|
||||||
|
${{ steps.release-notes.outputs.notes }}
|
||||||
Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
EOF
|
EOF
|
||||||
)"
|
)"
|
||||||
|
|||||||
Reference in New Issue
Block a user