Update README.md #115
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 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 | |
environment: | |
name: production | |
permissions: | |
contents: write | |
steps: | |
- name: 🗃️ Base content - Default metrics | |
uses: lowlighter/metrics@latest | |
with: | |
filename: metrics.classic.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
base: header, repositories | |
plugin_lines: yes | |
- name: 📅 Isometric commit calendar - Full-year calendar | |
uses: lowlighter/metrics@latest | |
with: | |
filename: metrics.plugin.isocalendar.fullyear.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
base: "" | |
plugin_isocalendar: yes | |
plugin_isocalendar_duration: full-year | |
- name: Recently starred | |
uses: lowlighter/metrics@latest | |
with: | |
filename: metrics.plugin.stars.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
base: "" | |
plugin_stars: yes | |
plugin_stars_limit: 3 | |
- name: Followers | |
uses: lowlighter/metrics@latest | |
with: | |
filename: metrics.plugin.people.followers.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
base: "" | |
plugin_people: yes | |
plugin_people_types: followers | |
plugin_people_limit: 96 | |
- name: Terminal | |
uses: lowlighter/metrics@latest | |
with: | |
template: terminal | |
filename: metrics.terminal.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
base: header, metadata | |
- name: Using classic charts | |
uses: lowlighter/metrics@latest | |
with: | |
filename: metrics.plugin.stargazers.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
base: "" | |
plugin_stargazers: yes | |
- name: Icons | |
uses: lowlighter/metrics@latest | |
with: | |
filename: metrics.plugin.topics.icons.svg | |
token: NOT_NEEDED | |
base: "" | |
plugin_topics: yes | |
plugin_topics_limit: 0 | |
plugin_topics_mode: icons | |
- name: Recent activity | |
uses: lowlighter/metrics@latest | |
with: | |
filename: metrics.plugin.activity.svg | |
token: ${{ secrets.METRICS_TOKEN }} | |
base: "" | |
plugin_activity: yes | |
plugin_activity_limit: 5 | |
plugin_activity_days: 0 | |
plugin_activity_filter: issue, pr, release, fork, review, ref/create | |
#- name: Contributors, stargazers, watchers, sponsors | |
#uses: lowlighter/metrics@latest | |
#with: | |
#filename: metrics.plugin.people.repository.svg | |
#token: ${{ secrets.METRICS_TOKEN }} | |
#base: "" | |
#template: repository | |
#repo: metrics | |
#plugin_people: yes | |
#plugin_people_types: contributors, stargazers, watchers, sponsors | |
#- name: GitHub Skyline | |
#uses: lowlighter/metrics@latest | |
#with: | |
#filename: metrics.plugin.skyline.svg | |
#token: NOT_NEEDED | |
#base: "" | |
#plugin_skyline: yes | |
#plugin_skyline_year: 2024 | |
#plugin_skyline_frames: 120 | |
#plugin_skyline_quality: 1 | |
#- name: Using graph charts | |
#uses: lowlighter/metrics@latest | |
#with: | |
#filename: metrics.plugin.stargazers.graph.svg | |
#token: ${{ secrets.METRICS_TOKEN }} | |
#base: "" | |
#plugin_stargazers: yes | |
#plugin_stargazers_charts_type: graph | |
#- name: Repositories traffic | |
#uses: lowlighter/metrics@latest | |
#with: | |
#filename: metrics.plugin.traffic.svg | |
#token: ${{ secrets.METRICS_TOKEN }} | |
#base: repositories | |
#plugin_traffic: yes | |
#- name: Featured star list languages | |
#uses: lowlighter/metrics@latest | |
#with: | |
#filename: metrics.plugin.starlists.languages.svg | |
#token: NOT_NEEDED | |
#base: "" | |
#plugin_starlists: yes | |
#plugin_starlists_languages: yes | |
#plugin_starlists_limit_languages: 8 | |
#plugin_starlists_limit_repositories: 0 | |
#plugin_starlists_only: Awesome | |
#- name: With worldmap | |
#uses: lowlighter/metrics@latest | |
#with: | |
#filename: metrics.plugin.stargazers.worldmap.svg | |
#token: ${{ secrets.METRICS_TOKEN }} | |
#base: "" | |
#plugin_stargazers: yes | |
#plugin_stargazers_charts: no | |
#plugin_stargazers_worldmap: yes | |
#plugin_stargazers_worldmap_token: ${{ secrets.GOOGLE_MAP_TOKEN }} | |
#plugin_stargazers_worldmap_sample: 200 |