fix: mobile dropdown token selection issue #2
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: Prevent Non-Release PRs to Main | |
on: | |
pull_request: | |
branches: | |
- main | |
pull_request_target: | |
branches: | |
- main | |
jobs: | |
check-target-branch: | |
if: github.base_ref == 'main' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if the source branch is a release branch | |
run: | | |
if [[ "${{ github.head_ref }}" != release/* ]]; then | |
echo "Only release branches can be merged into the main branch." | |
exit 1 | |
fi |