aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-01-04 19:26:16 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2023-01-04 19:34:44 +0100
commit7c10b7b6f0de4250ea9d68e95a834e4fc0d87e0f (patch)
tree1abb1eb284f37f171163bb3965499d6a0b8b60f4
parentb08e1e978cea62024d10e0a0124eea5ce9e33891 (diff)
downloadupstream-7c10b7b6f0de4250ea9d68e95a834e4fc0d87e0f.tar.gz
upstream-7c10b7b6f0de4250ea9d68e95a834e4fc0d87e0f.tar.bz2
upstream-7c10b7b6f0de4250ea9d68e95a834e4fc0d87e0f.zip
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)
-rw-r--r--.github/workflows/build.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1c665cb869..ce8f30dd18 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -167,7 +167,7 @@ jobs:
fi
if [ -n "$major_ver" ]; then
- git fetch --tags
+ git fetch --tags -f
latest_tag="$(git tag --sort=-creatordate -l $major_ver* | head -n1)"
if [ -n "$latest_tag" ]; then
TOOLCHAIN_PATH=releases/$(echo $latest_tag | sed 's/^v//')