Skip to content

Commit

Permalink
fix: try solution in actions/checkout/issues/520
Browse files Browse the repository at this point in the history
  • Loading branch information
linikerpapke committed Oct 4, 2023
1 parent 78a29ef commit dc3e072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -46,11 +46,11 @@ jobs:
with:
path: .

- name: verify commits
- name: Verify Commits
id: commit-check
run: |
prefix="^(chore|docs|feat|fix|refactor|style|test):"
commits=$(git log --format='%s' main..)
commits=$(git log --format='%s' ${{ github.base_ref }}..${{ github.head_ref }})
for commit in $commits; do
if ! [[ $commit =~ $prefix ]]; then
echo "Erro: O commit '$commit' não possui um prefixo válido (feat, chore, fix, etc...)"

0 comments on commit dc3e072

Please sign in to comment.