Skip to content

Metrics

Metrics #4120

Workflow file for this run

# Base on @jessfraz's
name: Metrics
on:
# Schedule updates (each hour)
schedule: [{cron: "0 * * * *"}]
# Lines below let you run workflow manually and on each commit (optional)
workflow_dispatch:
push: {branches: ["main"]}
# (optional) Run workflow manually
jobs:
achievements:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: achievements.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
user: unixorn
base: achievements
base_indepth: yes
plugin_achievements: yes
plugin_achievements_threshold: B # Display achievements with rank B or higher
plugin_achievements_secrets: yes # Display unlocked secrets achievements
# plugin_achievements_display: compact # Use compact display
plugin_achievements_display: detailed # Use detailed display
plugin_achievements_limit: 0 # Display all unlocked achievements (no limit)
github-metrics:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: header.svg
# You'll need to setup a personal token in your secrets.
token: ${{ secrets.METRICS_TOKEN }}
# GITHUB_TOKEN is a special auto-generated token used for commits
committer_token: ${{ secrets.GITHUB_TOKEN }}
# Options
user: unixorn
template: classic
base: header
config_timezone: ${{ secrets.USER_TIMEZONE }}
lines:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: lines-of-code.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: "repositories"
plugin_lines: yes
acti_comm:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: acti_comm.svg
# You'll need to setup a personal token in your secrets.
token: ${{ secrets.METRICS_TOKEN }}
# GITHUB_TOKEN is a special auto-generated token used for commits
committer_token: ${{ secrets.GITHUB_TOKEN }}
# Options
user: unixorn
template: classic
base: activity, community
config_timezone: ${{ secrets.USER_TIMEZONE }}
# plugin_languages_recent_days: 14
plugin_activity_filter: all
plugin_activity_days: 30
plugin_activity_visibility: all
iso_calendar:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: iso_calendar.svg
# You'll need to setup a personal token in your secrets.
token: ${{ secrets.METRICS_TOKEN }}
# GITHUB_TOKEN is a special auto-generated token used for commits
committer_token: ${{ secrets.GITHUB_TOKEN }}
# Options
user: unixorn
template: classic
base: ""
config_timezone: ${{ secrets.USER_TIMEZONE }}
plugin_isocalendar: yes
plugin_isocalendar_duration: half-year
habits:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: github-habits.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
config_timezone: ${{ secrets.USER_TIMEZONE }} # Set timezone
user: unixorn
base: ""
template: classic
plugin_habits: yes
plugin_habits_from: 400 # How many events to use to compute habits
plugin_habits_days: 90 # Keep only events from last N days
plugin_habits_charts: yes # Display charts section
plugin_habits_trim: yes # Trim unused hours on daily chart
issue_pr_lang:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: issue_pr_lang.svg
# You'll need to setup a personal token in your secrets.
token: ${{ secrets.METRICS_TOKEN }}
# GITHUB_TOKEN is a special auto-generated token used for commits
committer_token: ${{ secrets.GITHUB_TOKEN }}
# Options
user: unixorn
template: classic
base: ""
config_timezone: ${{ secrets.USER_TIMEZONE }}
plugin_followup: yes
plugin_languages: yes
plugin_followup_indepth: yes
plugin_followup_sections: user, repositories
repositories:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: repositories.svg
# You'll need to setup a personal token in your secrets.
token: ${{ secrets.METRICS_TOKEN }}
# GITHUB_TOKEN is a special auto-generated token used for commits
committer_token: ${{ secrets.GITHUB_TOKEN }}
# Options
user: unixorn
template: classic
base: repositories
config_timezone: ${{ secrets.USER_TIMEZONE }}
recent_languages:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: languages.recent.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
plugin_languages: yes
plugin_languages_ignored: >-
html, css, tex, less, dockerfile, makefile, qmake, lex, cmake, shell,
gnuplot
plugin_languages_sections: recently-used
plugin_languages_details: bytes-size, percentage
plugin_languages_limit: 10
plugin_languages_recent_load: 800
plugin_languages_recent_days: 30
most_used_languages:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
filename: languages.most_used.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
plugin_languages: yes
plugin_languages_ignored: >-
html, css, tex, less, dockerfile, makefile, qmake, lex, cmake, shell,
gnuplot
plugin_languages_details: bytes-size, percentage
plugin_languages_limit: 4
full_calendar:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
name: Full Calendar History
with:
filename: calendar.full.svg
# You'll need to setup a personal token in your secrets.
token: ${{ secrets.METRICS_TOKEN }}
# GITHUB_TOKEN is a special auto-generated token used for commits
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_calendar: yes
plugin_calendar_limit: 0