We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 516750b commit 664345dCopy full SHA for 664345d
Makefile
@@ -52,8 +52,8 @@ RC := $(shell echo $(CURRENT_VERSION) | grep -oE 'rc[0-9]+' | sed 's/rc//')
52
# Check if current branch is protected
53
define check_protected_branch
54
@current_branch=$$(git rev-parse --abbrev-ref HEAD); \
55
- if ! echo "$(PROTECTED_BRANCH)" | grep -wq "$$current_branch"; then \
56
- echo "Error: Tagging is only allowed from $(PROTECTED_BRANCH) branch. You are on $$current_branch branch."; \
+ if ! echo "$(PROTECTED_BRANCH)" | grep -wq "$$current_branch" && ! echo "$$current_branch" | grep -q "^release"; then \
+ echo "Error: Tagging is only allowed from $(PROTECTED_BRANCH) or release branches. You are on $$current_branch branch."; \
57
exit 1; \
58
fi
59
endef
0 commit comments