update-dashboard #157
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: 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 |