diff --git a/.github/workflows/var-branch.yml b/.github/workflows/var-branch.yml new file mode 100644 index 0000000..57af4cf --- /dev/null +++ b/.github/workflows/var-branch.yml @@ -0,0 +1,15 @@ +name: Var branch main +on: + pull_request: + branches: + - main + +jobs: + check-branch: + runs-on: ubuntu-latest + steps: + - name: Verify source branch + if: github.head_ref != 'dev' + run: | + echo "Error: Don't merge to main!" + exit 1 \ No newline at end of file