Ternary operator check index excluded #5899
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: Branch name validation | |
on: | |
push: | |
jobs: | |
valid-branch-name: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Verify branch name | |
run: | | |
if ! [[ "$GITHUB_REF_NAME" =~ ^feature/.*|^features/.*|^fix/.*|^release/.*|^doc/.*|develop|^issue-* ]]; then | |
exit 1 | |
fi |