From bb1b95160f47345f50a7c3d3e2df2d6ec66298da Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 06:00:18 +0000 Subject: [PATCH 1/2] Initial plan From dbc589f1973d42d8d82f6ad774cccda835b034ae Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 06:02:28 +0000 Subject: [PATCH 2/2] Fix git describe failure when no tags exist in repository --- .github/workflows/continuous-integration.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index fafbc782e8..d61c96ccdc 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -540,7 +540,11 @@ jobs: commit_date=$(git log -1 --pretty=format:'%ad' --date short "${commit_sha}" || : ) # use git describe to get the nearest tag and use that to build the version (e.g. 1.4.0-dev24 or 1.4.0) - commit_version=$(git describe --tags --match 'v*' "${commit_sha}"| sed -e 's/^v//; s/-g[0-9a-f]\+$//; s/-\([0-9]\+\)$/-dev\1/') + commit_version=$(git describe --tags --match 'v*' "${commit_sha}" 2>/dev/null | sed -e 's/^v//; s/-g[0-9a-f]\+$//; s/-\([0-9]\+\)$/-dev\1/' || true) + # fall back to a dev version based on commit SHA when no tags are present + if [[ -z "${commit_version}" ]]; then + commit_version="0.0.0-dev" + fi # shortened commit sha commit_short=$(git rev-parse --short "${commit_sha}")