diff --git a/.github/workflows/commit-labelling.yml b/.github/workflows/commit-labelling.yml index 2546a18c..1428841e 100644 --- a/.github/workflows/commit-labelling.yml +++ b/.github/workflows/commit-labelling.yml @@ -26,20 +26,18 @@ jobs: - name: Check Commit Messages for "fix", "feat", "chore", or "release" run: | - if [[ "$COMMIT_MESSAGE" =~ ^(fix|feat|chore|release) ]]; then - if [[ "$COMMIT_MESSAGE" =~ ^fix ]]; then - echo "Commit is a FIX. Proceed with color labeling!" - echo "![Fix Badge](https://img.shields.io/badge/Fix-%23FF5733)" - elif [[ "$COMMIT_MESSAGE" =~ ^feat ]]; then - echo "Commit is a FEATURE. Proceed with color labeling!" - echo "![Feature Badge](https://img.shields.io/badge/Feature-%234CAF50)" - elif [[ "$COMMIT_MESSAGE" =~ ^chore ]]; then - echo "Commit is a CHORE. Proceed with color labeling!" - echo "![Chore Badge](https://img.shields.io/badge/Chore-%23FF9800)" - elif [[ "$COMMIT_MESSAGE" =~ ^release ]]; then - echo "Commit is a RELEASE. Proceed with color labeling!" - echo "![Release Badge](https://img.shields.io/badge/Release-%237E57C2)" - fi + if [[ "$COMMIT_MESSAGE" =~ ^fix ]]; then + echo "Commit is a FIX. Proceed with color labeling!" + echo "![Fix Badge](https://img.shields.io/badge/Fix-%23FF5733)" + elif [[ "$COMMIT_MESSAGE" =~ ^feat ]]; then + echo "Commit is a FEATURE. Proceed with color labeling!" + echo "![Feature Badge](https://img.shields.io/badge/Feature-%234CAF50)" + elif [[ "$COMMIT_MESSAGE" =~ ^chore ]]; then + echo "Commit is a CHORE. Proceed with color labeling!" + echo "![Chore Badge](https://img.shields.io/badge/Chore-%23FF9800)" + elif [[ "$COMMIT_MESSAGE" =~ ^release ]]; then + echo "Commit is a RELEASE. Proceed with color labeling!" + echo "![Release Badge](https://img.shields.io/badge/Release-%237E57C2)" else echo "Commit does not match 'fix', 'feat', 'chore', or 'release'. No action." fi