Project / Metrics #264
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
# Copyright (C) Nicolas Lamirault <nicolas.lamirault@gmail.com> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: Project / Metrics | |
on: | |
# 🌏 Schedule updates | |
schedule: | |
- cron: "0 0 * * 1" | |
# 💡 The following line lets you run workflow manually from the action tab! | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
achievements: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: lowlighter/metrics@v3.32 | |
with: | |
filename: achievements.svg | |
token: ${{ secrets.METRICS_SECRET }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
user: nlamirault | |
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) | |
github-metrics: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: lowlighter/metrics@v3.32 | |
with: | |
filename: header.svg | |
# You'll need to setup a personal token in your secrets. | |
token: ${{ secrets.METRICS_SECRET }} | |
# GITHUB_TOKEN is a special auto-generated token used for commits | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
# Options | |
user: nlamirault | |
template: classic | |
base: header | |
config_timezone: ${{ secrets.USER_TIMEZONE }} | |
lines: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: lowlighter/metrics@v3.32 | |
with: | |
filename: lines-of-code.svg | |
token: ${{ secrets.METRICS_SECRET }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
base: "repositories" | |
plugin_lines: yes | |
acti_comm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: lowlighter/metrics@v3.32 | |
with: | |
filename: acti_comm.svg | |
# You'll need to setup a personal token in your secrets. | |
token: ${{ secrets.METRICS_SECRET }} | |
# GITHUB_TOKEN is a special auto-generated token used for commits | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
# Options | |
user: nlamirault | |
template: classic | |
base: activity, community | |
config_timezone: ${{ secrets.USER_TIMEZONE }} | |
iso_calender: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: lowlighter/metrics@v3.32 | |
with: | |
filename: iso_calender.svg | |
# You'll need to setup a personal token in your secrets. | |
token: ${{ secrets.METRICS_SECRET }} | |
# GITHUB_TOKEN is a special auto-generated token used for commits | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
# Options | |
user: nlamirault | |
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@v3.32 | |
with: | |
filename: github-habits.svg | |
token: ${{ secrets.METRICS_SECRET }} | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
config_timezone: ${{ secrets.USER_TIMEZONE }} # Set timezone | |
user: nlamirault | |
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 | |
issue_pr_lang: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: lowlighter/metrics@v3.32 | |
with: | |
filename: issue_pr_lang.svg | |
# You'll need to setup a personal token in your secrets. | |
token: ${{ secrets.METRICS_SECRET }} | |
# GITHUB_TOKEN is a special auto-generated token used for commits | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
# Options | |
user: nlamirault | |
template: classic | |
base: "" | |
config_timezone: ${{ secrets.USER_TIMEZONE }} | |
plugin_followup: yes | |
plugin_languages: yes | |
repositories: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: lowlighter/metrics@v3.32 | |
with: | |
filename: repositories.svg | |
# You'll need to setup a personal token in your secrets. | |
token: ${{ secrets.METRICS_SECRET }} | |
# GITHUB_TOKEN is a special auto-generated token used for commits | |
committer_token: ${{ secrets.GITHUB_TOKEN }} | |
# Options | |
user: nlamirault | |
template: classic | |
base: repositories | |
config_timezone: ${{ secrets.USER_TIMEZONE }} |