fix(api): bug bash preview issues resolved #11230
Workflow file for this run
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: Check pull request source branch | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- edited | |
jobs: | |
check-branches: | |
runs-on: blacksmith-2vcpu-ubuntu-2204 | |
steps: | |
- name: Check branches | |
env: | |
HEAD_REF: ${{ github.head_ref }} | |
BASE_REF: ${{ github.base_ref }} | |
run: | | |
if [ $HEAD_REF != "next" ] && [ $BASE_REF == "prod" ]; then | |
echo "Merge requests to prod branch are only allowed from next branch." | |
exit 1 | |
fi |