Report commit count #23
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: Report commit count | |
on: | |
workflow_dispatch: | |
jobs: | |
report: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Print report | |
run: | | |
cd ./src | |
git config --global url."https://${{ secrets.ORG_ADMIN_TOKEN }}@github".insteadOf https://github | |
./report_commit_count.sh > ../commit_count | |
- name: report commit count | |
uses: appleboy/[email protected] | |
with: | |
to: ${{ secrets.TELEGRAM_CAREATHON_ADMIN_GROUP_ID }} | |
token: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
format: MarkdownV2 | |
message_file: ./commit_count |