Skip to content

Commit

Permalink
message from file
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 11, 2024
1 parent 0c6e2b1 commit 3911811
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/telegram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,21 @@ jobs:
ruby-version: 3.2
- run: gem install hoc
- run: HOC=$(hoc .); export HOC
- run: |
(
printf "Good news, we've just published a new version "
printf "of [EO compiler](https://github.com/objectionary/eo): "
printf "[`${{github.ref_name}}`](https://github.com/objectionary/eo/releases/tag/${{github.ref_name}}). "
printf "At the moment, there are ${LOC} lines-of code "
printf "and ${HOC} [hits-of-code](https://www.yegor256.com/2014/11/14/hits-of-code.html) "
printf "in the [repository](https://github.com/objectionary/eo). "
printf "You're welcome to give it a try!"
) > message.md
- uses: appleboy/telegram-action@master
with:
to: -1001381878846
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
Good news, we've just published a new version of [EO compiler](https://github.com/objectionary/eo): [`${{github.ref_name}}`](https://github.com/objectionary/eo/releases/tag/${{github.ref_name}}). At the moment, there are ${LOC} lines-of code and ${HOC} [hits-of-code](https://www.yegor256.com/2014/11/14/hits-of-code.html) in the [repository](https://github.com/objectionary/eo). You're welcome to give it a try!
message_file: message.md
disable_web_page_preview: true
disable_notification: true
format: markdown

0 comments on commit 3911811

Please sign in to comment.