Skip to content

update-dashboard

update-dashboard #179

name: update-dashboard
on:
workflow_dispatch:
schedule:
- cron: "2 0 * * *"
permissions:
actions: read
contents: write
jobs:
update-dashboard:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Update Dashboard
env:
GITHUB_TOKEN: ${{ secrets.DEV_BOT_PAT }}
run: |
pip install pymongo
python update_dashboard.py --db-key ${{ secrets.IVY_DASHBOARD_DB_KEY }}
git config --global user.email "[email protected]"
git config --global user.name "ivy-dev-bot"
git add DASHBOARD.md
git commit -m "Auto-update dashboard with latest results"
git push