Metrics #15
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: | |
- cron: '0 23 * * *' | |
workflow_dispatch: | |
jobs: | |
github-metrics: | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
permissions: | |
contents: write | |
steps: | |
- name: Update base | |
uses: lowlighter/metrics@latest | |
with: | |
output_action: commit | |
retries: 1 | |
retries_delay: 10 | |
committer_branch: master | |
committer_message: "Update base metrics" | |
template: classic | |
filename: resources/graphics/images/metrics/base.svg | |
token: ${{ secrets.GH_TOKEN }} | |
base_indepth: yes | |
- name: Update activity | |
uses: lowlighter/metrics@latest | |
with: | |
output_action: commit | |
retries: 1 | |
retries_delay: 10 | |
committer_branch: master | |
committer_message: "Update activity metrics" | |
template: classic | |
filename: resources/graphics/images/metrics/activity.svg | |
token: ${{ secrets.GH_TOKEN }} | |
base: "" | |
plugin_activity: yes | |
plugin_activity_visibility: public | |
plugin_activity_timestamps: true | |
- name: Update code | |
uses: lowlighter/metrics@latest | |
with: | |
output_action: commit | |
retries: 1 | |
retries_delay: 10 | |
committer_branch: master | |
committer_message: "Update code metrics" | |
template: classic | |
filename: resources/graphics/images/metrics/code.svg | |
token: ${{ secrets.GH_TOKEN }} | |
base: "" | |
plugin_code: yes | |
plugin_code_days: 365 | |
plugin_code_languages: php | |
- name: Update followup | |
uses: lowlighter/metrics@latest | |
with: | |
output_action: commit | |
retries: 1 | |
retries_delay: 10 | |
committer_branch: master | |
committer_message: "Update followup metrics" | |
template: classic | |
filename: resources/graphics/images/metrics/followup.svg | |
token: ${{ secrets.GH_TOKEN }} | |
base: "" | |
plugin_followup: yes | |
plugin_followup_indepth: yes | |
- name: Update habits | |
uses: lowlighter/metrics@latest | |
with: | |
output_action: commit | |
retries: 1 | |
retries_delay: 10 | |
committer_branch: master | |
committer_message: "Update habits metrics" | |
template: classic | |
filename: resources/graphics/images/metrics/habits.svg | |
token: ${{ secrets.GH_TOKEN }} | |
base: "" | |
plugin_habits: yes | |
plugin_habits_days: 30 | |
plugin_habits_charts: yes | |
- name: Update languages | |
uses: lowlighter/metrics@latest | |
with: | |
output_action: commit | |
retries: 1 | |
retries_delay: 10 | |
committer_branch: master | |
committer_message: "Update languages metrics" | |
template: classic | |
filename: resources/graphics/images/metrics/languages.svg | |
token: ${{ secrets.GH_TOKEN }} | |
base: "" | |
plugin_languages: yes | |
plugin_languages_indepth: true | |
plugin_languages_sections: most-used, recently-used | |
plugin_languages_details: bytes-size, percentage, lines | |
plugin_languages_categories: data, markup, programming, prose | |
plugin_languages_recent_categories: data, markup, programming, prose | |
- name: Update people | |
uses: lowlighter/metrics@latest | |
with: | |
output_action: commit | |
retries: 1 | |
retries_delay: 10 | |
committer_branch: master | |
committer_message: "Update people metrics" | |
template: classic | |
filename: resources/graphics/images/metrics/people.svg | |
token: ${{ secrets.GH_TOKEN }} | |
base: "" | |
plugin_people: yes | |
plugin_people_types: followers, sponsors, members, thanks | |
# plugin_people_thanks: | |
- name: Update sponsors | |
uses: lowlighter/metrics@latest | |
with: | |
output_action: commit | |
retries: 1 | |
retries_delay: 10 | |
committer_branch: master | |
committer_message: "Update sponsors metrics" | |
template: classic | |
filename: resources/graphics/images/metrics/sponsors.svg | |
token: ${{ secrets.GH_TOKEN }} | |
base: "" | |
plugin_sponsors: yes | |
plugin_sponsors_title: Sponsor Us! | |
- name: Update stargazers | |
uses: lowlighter/metrics@latest | |
with: | |
output_action: commit | |
retries: 1 | |
retries_delay: 10 | |
committer_branch: master | |
committer_message: "Update stargazers metrics" | |
template: classic | |
filename: resources/graphics/images/metrics/stargazers.svg | |
token: ${{ secrets.GH_TOKEN }} | |
base: "" | |
plugin_stargazers: yes | |
plugin_stargazers_days: 0 | |
- name: Update projects | |
uses: lowlighter/metrics@latest | |
with: | |
output_action: commit | |
retries: 1 | |
retries_delay: 10 | |
committer_branch: master | |
committer_message: "Update projects metrics" | |
template: classic | |
filename: resources/graphics/images/metrics/projects.svg | |
token: ${{ secrets.GH_TOKEN }} | |
base: "" | |
plugin_projects: yes | |
plugin_projects_descriptions: yes |