chore(deps): bump the production-dependencies group across 1 directory with 58 updates #324
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Branch Name Check | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, edited] | |
| jobs: | |
| branch-name-check: | |
| runs-on: blacksmith-2vcpu-ubuntu-2404-arm | |
| # Skip this check for Dependabot PRs | |
| if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot' | |
| steps: | |
| - name: Check branch name | |
| run: | | |
| branch="${{ github.head_ref }}" | |
| # List of excluded branches | |
| excluded_branches=("main" "dev" "prod" "release" "stage" "staging") | |
| # Check if branch is in excluded list | |
| for excluded in "${excluded_branches[@]}"; do | |
| if [[ "$branch" == "$excluded" ]]; then | |
| echo "✅ Branch '$branch' is excluded from naming convention checks" | |
| exit 0 | |
| fi | |
| done | |
| # Check branch name pattern | |
| if [[ ! $branch =~ ^(feat|fix|lint|chore|docs|style|refactor|perf|test|build|ci|revert)/[a-z0-9-]+$ ]]; then | |
| echo "❌ Branch name '$branch' does not follow the required pattern" | |
| echo "Required pattern: type/description" | |
| echo "Allowed types: feat, fix, lint, chore, docs, style, refactor, perf, test, build, ci, revert" | |
| echo "Example: feat/add-login-feature" | |
| exit 1 | |
| fi | |
| echo "✅ Branch name '$branch' is valid" |