CI: build: fix external toolchain use with release tag tests
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 4 Jan 2023 18:26:16 +0000 (19:26 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 4 Jan 2023 18:35:17 +0000 (19:35 +0100)
commite819523f907480985caf62ff885a16f6e669be07
tree1f28ec1786cf59fb8094f57f6285bfb59b832a43
parentee1eda7c7d51e107999b57b2686bb48c35f38711
CI: build: fix external toolchain use with release tag tests

When a new tag for a release is created, the just checkout repo from
github actions will already have such tag locally created.

This will result in git fetch --tags failing with error rejecting the
remote tag with (would clobber existing tag).

Add -f option to overwrite any local tags and always fetch them from
remote.

Fixes: e24a1e6f6d7f ("CI: build: add support for external toolchains from stable branch")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit f655923b362e9f2d70672eee9c1fa82550a145a6)
.github/workflows/build.yml