Skip to content

Metrics

Metrics #468

Workflow file for this run

# Visit https://github.com/lowlighter/metrics/blob/master/action.yml for full reference
name: Metrics
on:
# Schedule updates (once at midnight)
schedule: [{cron: "0 0 * * *"}]
# Lines below let you run workflow manually and on each commit
workflow_dispatch:
push: {branches: ["master", "main"]}
jobs:
github-metrics:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install requests
- name: Generate stats.json
env:
TOKEN: ${{ secrets.TOKEN }}
run: |
python3 scripts/generate_stats_svg.py
- name: Generate SVG from stats.json
uses: lowlighter/metrics@latest
with:
filename: github-metrics.svg
# Your GitHub token
# The following scopes are required:
# - public_access (default scope)
# The following additional scopes may be required:
# - read:org (for organization related metrics)
# - read:user (for user related data)
# - repo (optional, if you want to include private repositories)
token: ${{ secrets.TOKEN }}
base: repositories
base_json: scripts/stats.json
plugin_followup: yes
plugin_followup_archived: no
user: pointblank-club