Skip to content

telegram github contribution report #32

telegram github contribution report

telegram github contribution report #32

name: telegram github contribution report
on:
workflow_dispatch:
schedule:
- cron: "30 8 27 * *"
jobs:
build:
defaults:
run:
working-directory: ./.github/workflows/report_contributions
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install termgraph
- name: get contribution report
shell: bash
run: |
GITHUB_TOKEN=${{ secrets.BOT_GITHUB_TOKEN }} ./get_contribution_report.sh > contributions_report_message
- name: send contribution report to osscameroon channel
uses: appleboy/[email protected]
with:
to: ${{ secrets.TELEGRAM_OSSCAMEROON_CHANNEL_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
format: MarkdownV2
message_file: ./.github/workflows/report_contributions/contributions_report_message
- name: send contribution report to osscameroon group
uses: appleboy/[email protected]
with:
to: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
format: MarkdownV2
message_file: ./.github/workflows/report_contributions/contributions_report_message