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:49:33 +0000 (23:49 +0200)
commitec6bbc52557e559a469761d182d690af20bf6189
treefb2092813efdf7604341ef24d819e78ac34e3c0d
parent962334bc82bf358d56d52dd4d87be8d07db94543
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>
(cherry picked from commit 0063e71d66766818fba286efe2a0ed8746c265e5)
.github/workflows/build.yml