CI: build: fix matching for openwrt release branch for toolchain parsing
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 4 Dec 2022 19:36:11 +0000 (20:36 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 4 Dec 2022 19:56:33 +0000 (20:56 +0100)
commite3cf2b84e5f8708ca17d931ef60746516c8a2fe4
treea4720de78ebe59bb82ef7b23b409b61b80ce4d3c
parent65c3d19c4b28ccac0d08d916de0ffa4c0e7b3dc2
CI: build: fix matching for openwrt release branch for toolchain parsing

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: e24a1e6f6d7f ("CI: build: add support for external toolchains from stable branch")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
.github/workflows/build.yml