Metrics #1985
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: Metrics | |
on: | |
# Schedule updates (each hour) | |
schedule: [{cron: "0,30 * * * *"}] | |
# Lines below let you run workflow manually and on each commit | |
workflow_dispatch: | |
jobs: | |
github-metrics: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install deps | |
run: pip install requests | |
- name: Run python script | |
run: python statsGen/genBadges.py | |
- name: Login | |
run: git config --global user.name "actions-user" && git config --local user.email "actions@github.com" | |
- name: Commit changes | |
run: git add . && git commit -am "Gen imgs at $(date)" || true | |
- name: Push changes | |
run: git push | |