Skip to content

Random Dare

Random Dare #14

Workflow file for this run

name: Random Dare
# every month on the first day at 00:00
on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
jobs:
radom_dare:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
run: pip install -r requirements.txt
- name: Random Dare
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHANNEL_ID: ${{ secrets.TELEGRAM_CHANNEL_ID }}
run: python3 rand.py
- name: Commit
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config --local user.email "nyaruko@niracler.com"
git config --local user.name "nyaruko"
git add README.md table.csv
git commit -m "docs: random dare $(date +'%Y-%m-%d')"
git remote set-url origin "https://$GH_TOKEN@github.com/niracler/random.git"
git push origin main