This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |