Skip to content

fix(ui): add spacing betwen the key details in the header #582

fix(ui): add spacing betwen the key details in the header

fix(ui): add spacing betwen the key details in the header #582

name: Enforce Branch Name Rules
on:
pull_request:
branches:
- main
jobs:
enforce-branch-rules:
runs-on: ubuntu-latest
steps:
- name: Check branch name
run: |
echo "Source branch: ${{ github.head_ref }}"
if [[ "${{ github.head_ref }}" != feature/* && \
"${{ github.head_ref }}" != bugfix/* && \
"${{ github.head_ref }}" != release/* && \
"${{ github.head_ref }}" != dependabot/* && \
"${{ github.head_ref }}" != latest && \
"${{ github.head_ref }}" != fe/* && \
"${{ github.head_ref }}" != be/* && \
"${{ github.head_ref }}" != e2e/* && \
"${{ github.head_ref }}" != ric/* ]]; then
echo "❌ Pull requests to 'main' are only allowed from 'feature/**', 'bugfix/**', 'release/**', 'dependabot/**', 'latest' or 'ric/**' branches."
exit 1
fi