Skip to content

Metrics

Metrics #721

Workflow file for this run

name: Metrics
on:
# Schedule daily updates
schedule: [{cron: "0 0 * * *"}]
# (optional) Run workflow manually
workflow_dispatch:
# (optional) Run workflow when pushing on master/main
push: {branches: ["master", "main"]}
jobs:
github-metrics:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: lowlighter/metrics@latest
with:
token: ${{ secrets.METRICS_TOKEN }}
# options
base: header, activity, community, repositories, metadata
config_timezone: Asia/Shanghai
plugin_activity: yes
plugin_activity_days: 14
plugin_activity_filter: all
plugin_activity_limit: 5
plugin_activity_load: 300
plugin_activity_visibility: public
plugin_isocalendar: yes
plugin_isocalendar_duration: half-year
plugin_languages: yes
plugin_languages_analysis_timeout: 15
plugin_languages_analysis_timeout_repositories: 7.5
plugin_languages_categories: markup, programming
plugin_languages_colors: github
plugin_languages_limit: 8
plugin_languages_recent_categories: markup, programming
plugin_languages_recent_days: 14
plugin_languages_recent_load: 300
plugin_languages_sections: most-used
plugin_languages_threshold: 0%