Skip to content

telegram joke report #257

telegram joke report

telegram joke report #257

Workflow file for this run

---
name: telegram joke report
on:
schedule:
- cron: "0 15 * * *"
jobs:
build:
defaults:
run:
working-directory: ./.github/workflows/report_jokes
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Fetch and render joke
run: |
pip install urllib3 && \
python main.py > report_joke && \
cat report_joke
- name: send joke report to osscameroon group
uses: appleboy/[email protected]
with:
to: ${{ secrets.TELEGRAM_OSSCAMEROON_GROUP_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
message_file: ./.github/workflows/report_jokes/report_joke