Skip to content

feat(GH) adding new workflow for 🚀 CloudDrove–Conventional-Commits-St… #1

feat(GH) adding new workflow for 🚀 CloudDrove–Conventional-Commits-St…

feat(GH) adding new workflow for 🚀 CloudDrove–Conventional-Commits-St… #1

---
name: 🔍 Conventional Commits Lint
on:
workflow_call:
inputs:
allowed_types:
required: false
type: string
default: "feat,fix,docs,style,refactor,perf,test,chore,ci,build,revert"
description: 'Comma-separated list of allowed commit types'
scopes:
required: false
type: string
default: ""
description: 'Comma-separated list of allowed scopes (optional)'
breaking_change_token:
required: false
type: string
default: "BREAKING CHANGE"
description: 'Token to identify breaking changes'
secrets:
GITHUB_TOKEN:

Check failure on line 23 in .github/workflows/conventional-commits-lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/conventional-commits-lint.yml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: false
description: 'GitHub token for private repositories'
jobs:
conventional-commits-check:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: 📦 Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: 🔍 Validate Conventional Commits
uses: webiny/action-conventional-commits@v1.3.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
allowed-commit-types: ${{ inputs.allowed_types }}
scopes: ${{ inputs.scopes }}
breaking-change-token: ${{ inputs.breaking_change_token }}
- name: 📋 Summary
run: |
echo "✅ All commit messages follow Conventional Commits specification"
echo "📝 Allowed types: ${{ inputs.allowed_types }}"
if [ -n "${{ inputs.scopes }}" ]; then
echo "🎯 Allowed scopes: ${{ inputs.scopes }}"
fi
echo "💥 Breaking change token: ${{ inputs.breaking_change_token }}"