Feature/189554 update accessibility statement #379
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: Validate source branch | |
on: | |
pull_request: | |
branches: | |
- main | |
- staging | |
jobs: | |
check: | |
name: Incoming branch validation | |
runs-on: ubuntu-latest | |
steps: | |
- id: branch | |
name: Check branch name | |
run: | | |
GIT_BRANCH=${{ github.head_ref }} | |
if [[ "$GIT_BRANCH" =~ ^hotfix/*|^feature/*|^renovate/* ]]; | |
then | |
echo "'$GIT_BRANCH' is a permitted branch" | |
exit 0 | |
else | |
echo "'$GIT_BRANCH' is not a permitted branch" | |
exit 1 | |
fi |