CI: build: fix parse toolchain step failing for git strict rules
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 25 May 2023 00:44:21 +0000 (02:44 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 25 May 2023 21:44:03 +0000 (23:44 +0200)
commit0063e71d66766818fba286efe2a0ed8746c265e5
tree57a1fc77ed3ae912e8e3c0108ce4c8ee39d8b0eb
parent8aa5a860101cc3f8d35ca968746320495c4b469e
CI: build: fix parse toolchain step failing for git strict rules

Commit 1cb8cdb ("ci: use new buildbot worker images with Debian 11")
introduced new Git version with strict rules for owner of the git
directory.

To handle this and not cause major change, just move the parsing before
the change of ownership of the openwrt directory permitting the correct
run of git fetch command with the same user that did the repository
checkout.

Fixes: 1cb8cdb ("ci: use new buildbot worker images with Debian 11")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
.github/workflows/build.yml