Skip to content
name: Check that pull request is from develop
on:
pull_request: # triggers on open, reopen and synchronize by default
branches: ["master"]
jobs:
bump-version:
if: ${{ github.head_ref }} == "develop"
name: Is pull request from develop
runs-on: ubuntu-latest #self-hosted
steps:
- name: Fail because the pull request is not from develop
run: echo pull requests from ${{github.head_ref}} are not allowed && exit 1