Random Dare #11
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: 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 "[email protected]" | |
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://[email protected]/niracler/random.git" | |
git push origin main |