Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rule #83

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,22 @@ on:

jobs:
bump-version:
name: Is pull request from develop
name: Is pull request from develop (or master)

runs-on: ubuntu-latest #self-hosted

steps:
- name: Check that pull request is from develop
- name: Check that pull request is from develop or master
run: |
if [ "${{github.head_ref}}" == "develop" ]; then
echo Pull request is from develop ✔
echo Pull request is from develop ✔
exit 0
elif [ "${{github.head_ref}}" == "master" ]; then
echo Pull request is from master ✔
exit 0
else
echo Pull requests from ${{github.head_ref}} are not allowed. Only pull requests from develop are allowed.
exit 1
fi

exit 1