Skip to content

v2.7.2

v2.7.2 #4

Workflow file for this run

name: Release Notification
on:
release:
types:
- published
jobs:
notify-telegram:
name: Notify Telegram
runs-on: ubuntu-latest
steps:
- name: Extract Release Info
id: extract_release
run: |
echo "RELEASE_NAME=${{ github.event.release.name }}" >> $GITHUB_ENV
echo "RELEASE_TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
echo "RELEASE_NOTES=${{ github.event.release.body }}" >> $GITHUB_ENV
echo "RELEASE_URL=${{ github.event.release.html_url }}" >> $GITHUB_ENV
- name: Send Telegram Message
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: markdown
message: |
🎉 *A new release is live!* 🎉
**Release:** ${{ env.RELEASE_NAME }}
**Tag:** ${{ env.RELEASE_TAG }}
**Notes:**
${{ env.RELEASE_NOTES }}
🔗 [View Release](${{ env.RELEASE_URL }})