We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdd1a62 commit 7bac55aCopy full SHA for 7bac55a
1 file changed
src/config.py
@@ -211,6 +211,12 @@ def clean_extra_workflow_paths(value: Any) -> set[str] | None:
211
212
@staticmethod
213
def clean_pull_request_branch(value: Any) -> str | None:
214
- if value and isinstance(value, str) and value.lower() not in ["main", "master"]:
+ if value and isinstance(value, str):
215
+ if value.lower() in ["main", "master"]:
216
+ gha_utils.error(
217
+ "Invalid input for `pull_request_branch` field, "
218
+ "the action does not support `main` or `master` branches"
219
+ )
220
+ raise SystemExit(1)
221
return value
222
return None
0 commit comments