Skip to content

Commit 2e8ab88

Browse files
authored
Refactor KernelBot Metrics workflow settings
Updated workflow configuration for KernelBot Metrics, including adjustments to base settings and output configurations.
1 parent be49ded commit 2e8ab88

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/main.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: KernelBot Metrics
22
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
3+
schedule: [{cron: "0 0 * * *"}]
4+
workflow_dispatch:
5+
push: {branches: ["master", "main"]}
66

77
permissions:
88
contents: write
@@ -14,28 +14,32 @@ jobs:
1414
- uses: lowlighter/metrics@latest
1515
with:
1616
token: ${{ secrets.METRICS_TOKEN }}
17+
committer_token: ${{ secrets.METRICS_TOKEN }}
1718
user: GaabDevWeb
1819
repo: KernelBot
1920
template: classic
20-
base: "" # REMOVE CABEÇALHO PESSOAL
21+
22+
# Ajuste de base para garantir a geração do arquivo
23+
base: repositories
24+
base_setup: yes
25+
base_repositories: no
26+
2127
config_timezone: America/Sao_Paulo
2228
config_twotone: yes
2329

24-
# PLUGIN: IDIOMAS (Anatomia do sistema)
30+
# Plugins solicitados
2531
plugin_languages: yes
2632
plugin_languages_details: lines, percentage
2733
plugin_languages_indepth: yes
2834

29-
# PLUGIN: FOLLOWUP (Backlog e Workflow)
3035
plugin_followup: yes
3136
plugin_followup_sections: repositories
3237

33-
# PLUGIN: LINES (Progresso de Refatoração)
3438
plugin_lines: yes
3539

36-
# PLUGIN: TRAFFIC (Engajamento do Repo)
3740
plugin_traffic: yes
3841

39-
# OUTPUT
42+
# Configurações de Output e Commit
4043
filename: kernel-status.svg
41-
committer_token: ${{ secrets.METRICS_TOKEN }}
44+
output_action: commit
45+
committer_branch: main # <--- Certifique-se que sua branch é main ou master

0 commit comments

Comments
 (0)