Metrics #441
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 0 * * 1,4" }] | |
# Lines below let you run workflow manually and on each commit (optional) | |
push: { branches: ["master", "main"] } | |
workflow_dispatch: | |
jobs: | |
github-metrics: | |
runs-on: ubuntu-latest | |
steps: | |
# See action.yml for all options | |
- uses: lowlighter/metrics@latest | |
with: | |
# Your GitHub token | |
token: ${{ secrets.METRICS_TOKEN }} | |
# GITHUB_TOKEN is a special auto-generated token restricted to current repository, which is used to push files in it | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Twitter | |
uses: lowlighter/metrics@latest | |
with: | |
filename: metrics.plugin.tweets.svg | |
token: NOT_NEEDED | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
plugin_tweets: yes | |
plugin_tweets_token: ${{ secrets.TWITTER_TOKEN }} # Required | |
plugin_tweets_limit: 2 # Limit to 2 tweets | |
plugin_tweets_user: MetaAI | |
- name: π° Activity plugin | |
uses: lowlighter/metrics@master | |
with: | |
filename: metrics.plugin.activity.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
base: "" | |
plugin_activity: yes | |
plugin_activity_limit: 7 | |
plugin_activity_days: 0 | |
plugin_activity_filter: issue, pr, release, fork, star | |
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }} | |
config_padding: 7%, 20% | |
- name: π‘ Habits plugin | |
uses: lowlighter/metrics@master | |
with: | |
filename: metrics.plugin.habits.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
base: "" | |
plugin_habits: yes | |
plugin_habits_facts: yes | |
plugin_habits_charts: yes | |
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }} | |
config_timezone: Asia/Colombo | |
- name: π Isocalendar plugin (full year) | |
uses: lowlighter/metrics@master | |
with: | |
filename: metrics.plugin.isocalendar.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
base: "" | |
plugin_isocalendar: yes | |
plugin_isocalendar_duration: full-year | |
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }} | |
- name: π·οΈ Languages plugin (detailed) | |
uses: lowlighter/metrics@master | |
with: | |
filename: metrics.plugin.languages.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
base: "" | |
plugin_languages: yes | |
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }} | |
- name: π¨βπ» Lines plugin | |
uses: lowlighter/metrics@master | |
with: | |
filename: metrics.plugin.lines.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
base: repositories | |
plugin_lines: yes | |
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }} | |
- name: βοΈ Posts plugin | |
uses: lowlighter/metrics@master | |
with: | |
filename: metrics.plugin.posts.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
base: "" | |
plugin_posts: yes | |
plugin_posts_source: dev.to | |
plugins_errors_fatal: | |
${{ github.repository == 'lowlighter/lowlighter' }} | |
# Display latest starred repositories | |
- name: π Stars plugin | |
uses: lowlighter/metrics@master | |
with: | |
filename: metrics.plugin.stars.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
base: "" | |
plugin_stars: yes | |
plugin_stars_limit: 2 | |
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }} | |
- name: π¬ Plugin error example | |
uses: lowlighter/metrics@master | |
with: | |
filename: metrics.plugin.error.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
base: "" | |
plugin_projects: yes | |
# Illustrate header hidden features with debug flags | |
# "--cakeday" will act as if it's your account birthday | |
# "--hireable" will act as if "Available for hire" is enabled | |
# "--halloween" will act as if it was halloween, changing the colors of calendars | |
- name: π¬ Header (hidden features) | |
uses: lowlighter/metrics@master | |
with: | |
filename: metrics.header.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
base: header | |
debug_flags: --cakeday --halloween | |
- name: Topics plugin (mastered) | |
uses: lowlighter/metrics@master | |
with: | |
filename: metrics.plugin.topics.mastered.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
base: "" | |
plugin_topics: yes | |
plugin_topics_mode: mastered | |
plugin_topics_limit: 0 | |
plugins_errors_fatal: yes | |
- name: Personal metrics (anilist) | |
uses: lowlighter/metrics@latest | |
with: | |
filename: metrics.personal.anilist.svg | |
token: NOT_NEEDED | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
plugin_anilist: yes | |
plugin_anilist_medias: anime | |
plugin_anilist_sections: favorites, characters,watching | |
plugin_anilist_shuffle: yes # Shuffle data for more varied outputs | |
plugin_anilist_user: afrizaloky # Use same username as GitHub login | |
plugin_anilist_limit: 2 | |
plugin_anilist_limit_characters: 22 | |
- name: Personal metrics | |
uses: lowlighter/metrics@latest | |
with: | |
filename: metrics.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
base: header | |
plugin_isocalendar: yes | |
plugin_languages: yes | |
plugin_languages_ignored: html, css, tex, less, dockerfile, makefile, qmake, lex, cmake, shell, gnuplot, vue, scala, c | |
plugin_languages_skipped: lowlighter | |
plugin_languages_details: bytes-size, percentage | |
plugin_topics: yes | |
plugin_topics_limit: 0 | |
plugin_topics_mode: mastered | |
config_order: base.header, isocalendar, languages, topics | |
- name: Waka Time | |
uses: lowlighter/metrics@latest | |
with: | |
filename: metrics.plugin.wakatime.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
plugin_wakatime: yes | |
plugin_wakatime_token: ${{ secrets.WAKATIME_TOKEN }} # Required | |
plugin_wakatime_days: 7 # Display last week stats | |
plugin_wakatime_sections: time, projects, projects-graphs, languages, languages-graphs, editors, os | |
plugin_wakatime_limit: 4 |