diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index d5cf385..f9bf063 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,17 +1,19 @@ name: Check pull request target on: - pull_request_target: + pull_request: types: - opened - reopened - synchronize + branches: + - master jobs: check-branches: runs-on: ubuntu-latest steps: - name: Check target branch run: | - if [ ${{ github.base_ref }} == "master" ] && [ ${{ github.head_ref }} != "dev" ]; then + if [ ${{ github.head_ref }} != "dev" ]; then echo "Only pull requests from dev branch are only allowed to be merged into master branch." exit 1 - fi \ No newline at end of file + fi