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 19:37:58 +0000 (20:37 +0100)
commit65c3d19c4b28ccac0d08d916de0ffa4c0e7b3dc2
tree10732b114295cb1bbce4a9a172daaf3da23e0b78
parentb59ac2a7d0ff427419e86bd38dea3d8910dd7926
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>
.github/workflows/build.yml
.github/workflows/check-kernel-patches.yml