removed old mmx-node #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Notify | |
on: | |
push: | |
tags: | |
- '**' | |
env: | |
MMX_TELEGRAM_TOKEN: ${{ secrets.MMX_TELEGRAM_TOKEN }} | |
MMX_TELEGRAM_TO_1: ${{ secrets.MMX_TELEGRAM_TO_1 }} | |
MMX_TELEGRAM_TO_2: ${{ secrets.MMX_TELEGRAM_TO_2 }} | |
DISCORD_WEBHOOK: ${{ secrets.MMX_DISCORD_WEBHOOK }} | |
jobs: | |
notify: | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get the version | |
id: get_version | |
run: echo VERSION=$(echo $GITHUB_REF | cut -d / -f 3) >> $GITHUB_OUTPUT | |
- name: Telegram notification | |
if: ${{ env.MMX_TELEGRAM_TO_1 != '' }} && ${{ env.MMX_TELEGRAM_TOKEN != '' }} | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ env.MMX_TELEGRAM_TO_1 }} | |
token: ${{ env.MMX_TELEGRAM_TOKEN }} | |
format: html | |
message: | | |
MMX Node ${{ steps.get_version.outputs.VERSION }} (with compressed plot support) | |
${{ github.event.repository.url }}/releases/${{ steps.get_version.outputs.VERSION }} | |
<a href="https://t.me/mmx_node">Telegram channel</a> | |
<a href="https://t.me/mmx_node_chat">Telegram chat</a> | |
<a href="https://t.me/mmx_node_chat_ru">Telegram chat[RU]</a> | |
<a href="https://discord.gg/tCwevssVmY">Discord</a> | |
- name: Telegram notification | |
if: ${{ env.MMX_TELEGRAM_TO_2 != '' }} && ${{ env.MMX_TELEGRAM_TOKEN != '' }} | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ env.MMX_TELEGRAM_TO_2 }} | |
token: ${{ env.MMX_TELEGRAM_TOKEN }} | |
format: html | |
message: | | |
MMX Node ${{ steps.get_version.outputs.VERSION }} (with compressed plot support) | |
${{ github.event.repository.url }}/releases/${{ steps.get_version.outputs.VERSION }} | |
<a href="https://t.me/mmx_node">Telegram channel</a> | |
<a href="https://t.me/mmx_node_chat">Telegram chat</a> | |
<a href="https://t.me/mmx_node_chat_ru">Telegram chat[RU]</a> | |
<a href="https://discord.gg/tCwevssVmY">Discord</a> | |
- name: Discord notification | |
if: ${{ env.DISCORD_WEBHOOK != '' }} | |
uses: Ilshidur/action-discord@master | |
with: | |
args: | | |
MMX Node ${{ steps.get_version.outputs.VERSION }} (with compressed plot support) | |
${{ github.event.repository.url }}/releases/${{ steps.get_version.outputs.VERSION }} |