Update dashboard html #35879
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
# Run this to update the html dashboards. Will run automatically as well. | |
name: Update dashboard html | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '*/15 * * * *' | |
push: | |
branches: [ main ] | |
jobs: | |
run_update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
python -m pip install --upgrade pip | |
pip install . | |
- name: Update HTML | |
run: | | |
python update_dashboard.py ${{ secrets.GITHUB_TOKEN }} config/tracked_workflows.yaml html/index.html | |
python update_dashboard.py ${{ secrets.GITHUB_TOKEN }} config/rail_tracked_workflows.yaml html/rail.html | |
python update_dashboard.py ${{ secrets.GITHUB_TOKEN }} config/tracked_incubator.yaml html/incubator.html | |
- name: Deploy to Github pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: html | |
git-config-name: deploy-bot | |
git-config-email: <> |