Telegram joining message #88
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: Telegram joining message | |
on: | |
schedule: | |
- cron: "30 16 * * 6" # Every Saturday at 4:30 PM UTC (i.e., 10:00 PM IST) | |
workflow_dispatch: | |
jobs: | |
send-joining-msg: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Set environment variable | |
run: | | |
sudo apt-get update | |
sudo apt-get install nodejs | |
catchup_number=$(node util/get-next-catchup-number.js) | |
echo "CATCHUP_NUMBER=${catchup_number}" >> ${GITHUB_ENV} | |
- name: Send joining message on OTC's Telegram group | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_CHAT_ID }} | |
token: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
format: markdown | |
message: | | |
**${{ env.CATCHUP_NUMBER }} OTC CatchUp** | |
An informal open-to-all Tech discussion! | |
We start at 10:30 PM IST. | |
Join in at any time! 👇 | |
https://catchup.ourtech.community/attend |