Skip to content

Commit f63a640

Browse files
authored
Refactor metrics workflow in main.yml
Updated GitHub Actions workflow for metrics generation, modifying various plugin settings and removing unnecessary lines.
1 parent deb759a commit f63a640

1 file changed

Lines changed: 20 additions & 24 deletions

File tree

.github/workflows/main.yml

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,30 @@
1-
name: Metrics
2-
on:
3-
schedule: [{cron: "0 0 * * *"}]
4-
workflow_dispatch:
5-
push: {branches: ["master", "main"]}
6-
7-
permissions:
8-
contents: write
9-
10-
jobs:
11-
github-metrics:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: lowlighter/metrics@latest
1+
- uses: lowlighter/metrics@latest
152
with:
3+
filename: kernel-status.svg
164
token: ${{ secrets.METRICS_TOKEN }}
5+
committer_token: ${{ secrets.METRICS_TOKEN }} # Necessário para o push automático
176
user: GaabDevWeb
7+
repo: KernelBot
188
template: classic
19-
base: header, activity, community, repositories
9+
base: ""
2010
config_timezone: America/Sao_Paulo
2111
config_twotone: yes
12+
config_display: large
13+
14+
# Foco em Linguagem e Complexidade (Arquitetura do Kernel)
15+
plugin_languages: yes
16+
plugin_languages_details: lines, percentage
17+
plugin_languages_indepth: yes
2218

23-
# PLUGIN: Calendário Isométrico (Estilo industrial/brutalista)
24-
plugin_isocalendar: yes
25-
plugin_isocalendar_duration: half-year
19+
# Foco em Engenharia e Workflow (Gestão de Branches/PRs)
20+
plugin_lines: yes
21+
plugin_followup: yes
22+
plugin_followup_sections: repositories
2623

27-
# PLUGIN: Hábitos e Linguagens
24+
# Atividade e Ritmo (Visual de "Dashboard" Industrial)
2825
plugin_habits: yes
29-
plugin_languages: yes
30-
plugin_languages_details: percentage
26+
plugin_habits_charts: yes # Gera os gráficos de barras sólidos
27+
plugin_habits_trim: yes
3128

32-
# FORÇAR O OUTPUT (O segredo)
33-
filename: github-metrics.svg
34-
committer_token: ${{ secrets.METRICS_TOKEN }} # Usa o seu token para commitar o arquivo
29+
# Tráfego (Interesse no Repositório)
30+
plugin_traffic: yes

0 commit comments

Comments
 (0)