mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-13 13:06:51 +00:00
Fix wildcard in middle of actionsglob/scaleUpTrigger.githubEvent.checkRun.names not working (#395)
actionsglob patterns like `foo-*-bar` was not correctly working. Tests and the implementation was enhanced to correctly support it.
This commit is contained in:
@@ -65,7 +65,7 @@ func Match(pat string, s string) bool {
|
||||
|
||||
s = subs[1]
|
||||
|
||||
wildcardInHead = false
|
||||
wildcardInHead = wildcardInTail
|
||||
}
|
||||
|
||||
r := s == ""
|
||||
|
||||
Reference in New Issue
Block a user