From c157caee17d6c95a8a79f18ab670c6e06082d434 Mon Sep 17 00:00:00 2001 From: DavidHerreros Date: Wed, 3 Jul 2024 10:27:30 +0200 Subject: [PATCH] Fix typo in package version --- .github/workflows/main_merge_check.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/main_merge_check.yml diff --git a/.github/workflows/main_merge_check.yml b/.github/workflows/main_merge_check.yml new file mode 100644 index 0000000..a2ec60d --- /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