Skip to content

Commit be49ded

Browse files
authored
Update GitHub Actions workflow for KernelBot Metrics
1 parent 9e728de commit be49ded

1 file changed

Lines changed: 25 additions & 14 deletions

File tree

.github/workflows/main.yml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,41 @@
1-
- uses: lowlighter/metrics@latest
1+
name: KernelBot Metrics
2+
on:
3+
schedule: [{cron: "0 0 * * *"}] # Atualiza todo dia
4+
workflow_dispatch: # Permite rodar na mão
5+
push: {branches: ["master", "main"]} # Gatilho ao subir código
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
github-metrics:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: lowlighter/metrics@latest
215
with:
3-
filename: kernel-status.svg
416
token: ${{ secrets.METRICS_TOKEN }}
5-
committer_token: ${{ secrets.METRICS_TOKEN }} # Necessário para o push automático
617
user: GaabDevWeb
718
repo: KernelBot
819
template: classic
9-
base: ""
20+
base: "" # REMOVE CABEÇALHO PESSOAL
1021
config_timezone: America/Sao_Paulo
1122
config_twotone: yes
12-
config_display: large
13-
14-
# Foco em Linguagem e Complexidade (Arquitetura do Kernel)
23+
24+
# PLUGIN: IDIOMAS (Anatomia do sistema)
1525
plugin_languages: yes
1626
plugin_languages_details: lines, percentage
1727
plugin_languages_indepth: yes
1828

19-
# Foco em Engenharia e Workflow (Gestão de Branches/PRs)
20-
plugin_lines: yes
29+
# PLUGIN: FOLLOWUP (Backlog e Workflow)
2130
plugin_followup: yes
2231
plugin_followup_sections: repositories
2332

24-
# Atividade e Ritmo (Visual de "Dashboard" Industrial)
25-
plugin_habits: yes
26-
plugin_habits_charts: yes # Gera os gráficos de barras sólidos
27-
plugin_habits_trim: yes
33+
# PLUGIN: LINES (Progresso de Refatoração)
34+
plugin_lines: yes
2835

29-
# Tráfego (Interesse no Repositório)
36+
# PLUGIN: TRAFFIC (Engajamento do Repo)
3037
plugin_traffic: yes
38+
39+
# OUTPUT
40+
filename: kernel-status.svg
41+
committer_token: ${{ secrets.METRICS_TOKEN }}

0 commit comments

Comments
 (0)