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:34:44 +0000 (19:34 +0100)
commit7c10b7b6f0de4250ea9d68e95a834e4fc0d87e0f
tree1abb1eb284f37f171163bb3965499d6a0b8b60f4
parentb08e1e978cea62024d10e0a0124eea5ce9e33891
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