Skip to content

Commit

Permalink
Fix rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Dontrian committed Dec 4, 2023
1 parent 84af641 commit acf2fea
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ on:

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
- name: Check that pull request is from develop
run: |
if github.head_ref != 'develop'
then
exit 0
else
echo pull requests from ${{github.head_ref}} are not allowed
exit 1
fi

0 comments on commit acf2fea

Please sign in to comment.