Skip to content

Metrics

Metrics #6577

Workflow file for this run

name: Metrics
on:
# Schedule daily updates
schedule: [{cron: "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: yousecjoe/metrics@master
with:
use_prebuilt_image: yes
filename: header.svg
token: ${{ secrets.METRICS_TOKEN }}
# GITHUB_TOKEN is a special auto-generated token used for commits
committer_token: ${{ secrets.GITHUB_TOKEN }}
retries: 3
retries_delay: 30
retries_output_action: 3
retries_delay_output_action: 30
# Options
user: yousecjoe
template: classic
base: header
config_timezone: ${{ secrets.USER_TIMEZONE }}
iso_calender:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Full-year calendar
uses: yousecjoe/metrics@master
with:
filename: metrics.plugin.isocalendar.fullyear.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
plugin_isocalendar: yes
plugin_isocalendar_duration: full-year
# Options
user: yousecjoe
template: classic
config_timezone: ${{ secrets.USER_TIMEZONE }}
issue_pr_lang:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Indepth analysis
uses: yousecjoe/metrics@master
with:
filename: metrics.plugin.followup.indepth.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
plugin_followup: yes
plugin_followup_indepth: yes
plugin_languages: yes
habits:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: yousecjoe/metrics@master
with:
use_prebuilt_image: yes
filename: github-habits.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
config_timezone: ${{ secrets.USER_TIMEZONE }} # Set timezone
user: yousecjoe
base: ""
template: classic
plugin_habits: yes
plugin_habits_from: 200 # Use 200 events to compute habits
plugin_habits_days: 14 # Keep only events from last 14 days
plugin_habits_charts: yes # Display charts section
plugin_habits_trim: yes # Trim unused hours on daily chart
achievements:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: yousecjoe/metrics@master
with:
use_prebuilt_image: yes
filename: achievements.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
user: yousecjoe
base: achievements
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_limit: 0 # Display all unlocked achievements (no limit)