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:14:20 +0000 (21:14 +0100)
commit63a2ea54707d3f8199f5ce9e24e956840e090dca
tree29546e8f0b5fcdd1df4eaf593a35f5f0eb4af31e
parent9db78a7e8626913c13eb90225556358512ed5ca2
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