Update Clone Dashboard #412
This file contains hidden or 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 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 |