diff --git a/.github/workflows/main_merge_check.yml b/.github/workflows/main_merge_check.yml new file mode 100644 index 0000000..8e6f5c5 --- /dev/null +++ b/.github/workflows/main_merge_check.yml @@ -0,0 +1,14 @@ +name: Check merging branch + +on: + pull_request: + +jobs: + check_branch: + runs-on: ubuntu-latest + steps: + - name: Check branch + if: github.base_ref == 'main' && github.head_ref != 'dev' + run: | + echo "ERROR: You can only merge to main from dev." + exit 1 \ No newline at end of file diff --git a/src/cryo_challenge/__init__.py b/src/cryo_challenge/__init__.py index e69de29..cafea4e 100644 --- a/src/cryo_challenge/__init__.py +++ b/src/cryo_challenge/__init__.py @@ -0,0 +1 @@ +from cryo_challenge.__about__ import __version__ \ No newline at end of file