diff --git a/.github/workflows/deploy-check.yml b/.github/workflows/deploy-check.yml new file mode 100644 index 000000000..44c2806ec --- /dev/null +++ b/.github/workflows/deploy-check.yml @@ -0,0 +1,20 @@ +name: Check Deploy + +on: + pull_request_target: + types: + - opened + - reopened + - synchronize + - edited + branches: + - main + +jobs: + check: + if: github.head_ref != 'develop' + runs-on: ubuntu-latest + steps: + - run: | + echo "Pull requests to main branch are only allowed from develop branch." + exit 1