Minor Version Bump to 1.0.1 #820
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: Git tree checks | |
on: | |
pull_request: | |
types: [opened, edited, reopened, synchronize] | |
merge_group: | |
permissions: read-all | |
jobs: | |
check_base_ref: | |
name: Release branch restriction | |
runs-on: ubuntu-latest | |
steps: | |
- id: not_based_on_master | |
if: | | |
github.event_name == 'pull_request' && | |
github.event.pull_request.base.ref == 'release/latest' && | |
! startsWith(github.event.pull_request.head.ref, 'release/') | |
run: | | |
echo 'Only `release/*` branches are allowed to merge into the release branch `release/latest`.' | |
echo 'Maybe you want to change your PR base to `master`?' | |
exit 1 |