From b8e7afb3e1fb3fc30c915b0e255e695cfb4ef3b9 Mon Sep 17 00:00:00 2001 From: Ben Gazzard Date: Tue, 16 Jan 2024 09:37:04 +0000 Subject: [PATCH] fix: Make sure that the tags are fetched before testing with git describe (#2047) ## Description: This fixes the issue seen in https://app.circleci.com/pipelines/github/kurtosis-tech/kurtosis/10677/workflows/66565433-39e0-4397-b0d8-4c3c81ad366b/jobs/152621. When ci checks out code in a step it doesn't fetch tags, so `git describe --exact-match` will always fail - this change fixes this by fetching tags. ## Is this change user facing? NO ## References (if applicable): - https://app.circleci.com/pipelines/github/kurtosis-tech/kurtosis/10677/workflows/66565433-39e0-4397-b0d8-4c3c81ad366b/jobs/152621 -https://github.com/kurtosis-tech/kurtosis/pull/2041 --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index a17ac536a3..9baca754e8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -435,6 +435,7 @@ jobs: - run: | # If the current commit is not a tag and if there is no change (compared to main) of anything but docs, then skip this + git fetch origin --tags if (! git describe --exact-match) && git --no-pager diff --exit-code origin/main...HEAD -- . ':!docs' ':!*.md' ; then circleci-agent step halt fi