CI: fix matching for openwrt release branch for container selection
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 4 Dec 2022 19:28:28 +0000 (20:28 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 4 Dec 2022 20:13:46 +0000 (21:13 +0100)
commitd48f38c30f7c3d8458d86fec238b5153f78df297
tree3ab72add170fbf7c752e73e85509aea6742f14a9
parent26f35c40b624600b07292951c0ced58db500ce66
CI: fix matching for openwrt release branch for container selection

The current match logic doesn't handle test for push events related to
stable release (example openwrt-22.03) but only fork with the related
prefix (example openwrt-22.03-fixup)

Fix wrong matching and while at it also add extra checks to other
matching (check if the branch name actually start with the requested
prefix)

Fixes: abe8a4824210 ("CI: build: add support for per branch tools container")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 65c3d19c4b28ccac0d08d916de0ffa4c0e7b3dc2)
.github/workflows/build.yml
.github/workflows/check-kernel-patches.yml