Completely document all global functions. #10
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 Telegram on Push | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send message to Telegram | |
env: | |
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
CHANNEL_ID: ${{ secrets.TELEGRAM_CHANNEL_ID }} | |
run: | | |
MESSAGE="New commit in NGT documentation! ${{ github.event.head_commit.message }}" | |
curl -X POST "https://api.telegram.org/bot$TELEGRAM_TOKEN/sendMessage" -d "chat_id=$CHANNEL_ID&text=$MESSAGE" | |
- name: UpdateDocs | |
run: | | |
curl -X GET https://ngtcode.dev/update_docs.php | |