-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporarily disable branche protections since it breaks the release workflow
- Loading branch information
1 parent
41564ff
commit d8aadf7
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
name: Main Branch Protection | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
#on: | ||
# pull_request: | ||
# branches: | ||
# - main | ||
|
||
jobs: | ||
check-branch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check branch | ||
run: | | ||
if [[ ${GITHUB_HEAD_REF} != development ]] && [[ ${GITHUB_HEAD_REF} != documentation ]] && ! [[ ${GITHUB_HEAD_REF} =~ ^hotfix/ ]]; | ||
then | ||
echo "Error: Pull request must come from 'development', 'documentation' or 'hotfix/' branch" | ||
exit 1 | ||
fi | ||
#jobs: | ||
# check-branch: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Check branch | ||
# run: | | ||
# if [[ ${GITHUB_HEAD_REF} != development ]] && [[ ${GITHUB_HEAD_REF} != documentation ]] && ! [[ ${GITHUB_HEAD_REF} =~ ^hotfix/ ]]; | ||
# then | ||
# echo "Error: Pull request must come from 'development', 'documentation' or 'hotfix/' branch" | ||
# exit 1 | ||
# fi |