From ac63ad73a2bf2d9183240ed68282f41812d45a77 Mon Sep 17 00:00:00 2001 From: rami3l Date: Thu, 14 Dec 2023 16:52:40 +0800 Subject: [PATCH] refactor(ci): move `freebsd-builds` to GitHub Actions, take 2 --- ci/cirrus-templates/script.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/cirrus-templates/script.bash b/ci/cirrus-templates/script.bash index 23c6f4acfe9..5fe33bdc872 100644 --- a/ci/cirrus-templates/script.bash +++ b/ci/cirrus-templates/script.bash @@ -8,13 +8,14 @@ if [ "root" == "$(whoami)" ]; then exit 1; fi echo "=========" echo "Acquire tags for the repo" -git fetch --no-tags --prune --depth=1 origin +refs/tags/*:refs/tags/* +# https://github.com/reg-viz/reg-suit#workaround-for-detached-head +git checkout ${GITHUB_REF#refs/heads/} || git checkout -b ${GITHUB_REF#refs/heads/} && git pull echo "=========" echo "Display the current git status" git status -git describe --always +git describe echo "=========" echo "Prep cargo dirs"