2024-05-03 22:26:05 -04:00
|
|
|
name: Issue Updates Workflow
|
|
|
|
|
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types: [opened, closed, reopened]
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-05-03 22:38:37 -04:00
|
|
|
- name: Send Telegram Message
|
|
|
|
run: |
|
|
|
|
msg_text='${{ github.actor }} updated an issue:
|
2024-05-03 22:54:35 -04:00
|
|
|
status: ${{ github.event.issue.state }} - #${{ github.event.issue.number }} ${{ github.event.issue.title }}
|
2024-05-08 17:30:00 -04:00
|
|
|
https://github.com/zaneschepke/wgtunnel/issues/${{ github.event.issue.number }}'
|
2024-05-03 22:38:37 -04:00
|
|
|
curl -s -X POST 'https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendMessage' \
|
2024-05-03 22:42:44 -04:00
|
|
|
-d "chat_id=${{ secrets.TELEGRAM_TO }}&text=${msg_text}&message_thread_id=${{ secrets.TELEGRAM_TOPIC }}"
|