Skip to content

Update Clone Dashboard #413

Update Clone Dashboard

Update Clone Dashboard #413

name: Update Clone Dashboard
on:
workflow_run:
workflows: ["Track Dataset Repository Clones"]
types:
- completed
workflow_dispatch: # Allow for running this manually.
permissions:
contents: write
jobs:
update_dashboard:
runs-on: ubuntu-latest
if: github.repository == 'ReproBrainChart/ReproBrainChart.github.io' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- name: Set up Python version
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
pip3 install PyGithub
python -m pip install --upgrade pip pandas
pip install bokeh
- name: Run create_graph.py
run: python scripts/clone-tracking/create_graph.py
- name: Commit changes
run: |
git config --global user.name 'tsalo'
git config --global user.email ${{ secrets.EMAIL }}
git add -A
git commit -am "Update dashboard"
- name: Push changes
run: git push