File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ # Workflow do GitHub Actions para verificar se o código Terraform está bem formatado e se os commits seguem
3+ # a estrutura de mensagens de commit convencionais (necessário para criar releases automáticas com Release Please).
4+ #
5+ # IMPORTANTE: Este workflow é chamado por outros workflows nos repositórios da Modern Gitops Stack e está
6+ # centralizado aqui para facilitar a manutenção entre módulos. Por isso, certifique-se de não introduzir
7+ # mudanças que quebrem a compatibilidade ao modificar este workflow.
8+
9+ name : " modules-linters"
10+
11+ on :
12+ workflow_call :
13+
14+ jobs :
15+ commits-checks :
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - name : " Fazer checkout do repositório"
20+ uses : actions/checkout@v6
21+ with :
22+ fetch-depth : 0 # Buscar todo o histórico para todas as tags e branches
23+
24+ - name : " Verificar mensagens de commit"
25+ uses : docker://aevea/commitsar:0.20.2
26+ env :
27+ COMMITSAR_CONFIG_PATH : ./.github
Original file line number Diff line number Diff line change 8888 file : ${{ inputs.context }}/${{ inputs.dockerfile }}
8989 platforms : ${{ inputs.platforms }}
9090 push : ${{ github.event_name != 'pull_request' }}
91+ load : ${{ github.event_name == 'pull_request' }}
9192 tags : ${{ steps.meta.outputs.tags }}
9293 labels : ${{ steps.meta.outputs.labels }}
9394 annotations : ${{ steps.meta.outputs.annotations }}
Original file line number Diff line number Diff line change 2727 run : " terraform fmt -check"
2828
2929 commits-checks :
30- runs-on : ubuntu-latest
31-
32- steps :
33- - name : " Fazer checkout do repositório"
34- uses : actions/checkout@v6
35- with :
36- fetch-depth : 0 # Buscar todo o histórico para todas as tags e branches
37-
38- - name : " Verificar mensagens de commit"
39- uses : docker://aevea/commitsar:0.20.2
40- env :
41- COMMITSAR_CONFIG_PATH : ./.github
30+ uses : GersonRS/modern-gitops-stack/.github/workflows/modules-commitlinter.yaml@main
You can’t perform that action at this time.
0 commit comments