Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,28 @@ on:

pull_request:
branches:
- feature/**
- bugfix/**
- main

jobs:
validate-pr-branch-name:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Enforce PR branch naming convention
run: |
branch="${{ github.head_ref }}"
if [[ ! "$branch" =~ ^(feature|bugfix)/ ]]; then
echo "::error::PR branch must start with 'feature/' or 'bugfix/'. Got: $branch"
exit 1
fi

continuous-integration:
needs: validate-pr-branch-name
if: |
always() &&
(needs.validate-pr-branch-name.result == 'success' ||
needs.validate-pr-branch-name.result == 'skipped')
uses: ./.github/workflows/build.yml
with:
pack: false
secrets: inherit
secrets: inherit