Revert "[TECH] Add a workflow to build version" #37
This file contains 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: PR Title Check | |
on: | |
pull_request: | |
types: [opened] # Correction ici | |
branches: | |
- main | |
jobs: | |
check-title: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Validate PR title | |
run: | | |
if [[ ! "$(echo '${{ github.event.pull_request.title }}' | grep -E '^\[(BUGFIX|FEATURE|TECH|deps-dev|DOC|BUMP)\]')" ]]; then | |
echo "Error: Pull request title must start with [BUGFIX], [TECH], [DOC], [BUMP] or [FEATURE]." | |
exit 1 | |
fi |