Skip to content

Commit

Permalink
chore: additional to workflow configurations-env
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Andrews <[email protected]>
  • Loading branch information
ABC2015 committed Nov 28, 2024
1 parent 5155073 commit 27eadcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/validation-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ jobs:
set -euo pipefail
echo "Validating commit messages..."
# Updated regex
REGEX="^(feat|fix|hotfix|chore|test|refactor|release)(\([a-z0-9_-]+\))?: .{1,72}$"
INVALID_COMMITS=$(git log --format=%s HEAD | grep -vE "$REGEX" || true)
INVALID_COMMITS=$(git log -1 --format=%s | grep -vE "$REGEX" || true)
if [[ -n "$INVALID_COMMITS" ]]; then
echo "❌ The following commit messages do not follow the convention:"
Expand Down

0 comments on commit 27eadcd

Please sign in to comment.