Skip to content

fix/v0.1.1

fix/v0.1.1 #17

name: Check PR to master
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Get current branch name
run: |
echo ${{ github.head_ref }}
if [[ ! ${{ github.head_ref }} =~ ^(release|hotfix)/ ]]; then
echo "PR to master must come from a release or hotfix branch"
exit 1
fi