Skip to content

Fix "Build containers" CI failure when repository has no v* git tags#3

Draft
bramhanandlingala with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-github-actions-job
Draft

Fix "Build containers" CI failure when repository has no v* git tags#3
bramhanandlingala with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-github-actions-job

Conversation

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown

git describe --tags --match 'v*' exits with code 128 when no matching tags exist, causing the "Build meta" step to abort under set -Eeuo pipefail.

Change

In .github/workflows/continuous-integration.yml, made commit_version derivation fault-tolerant by suppressing the fatal stderr message and falling back to "dev" on failure:

# Before
commit_version=$(git describe --tags --match 'v*' "${commit_sha}"| sed -e 's/^v//; ...')

# After
commit_version=$(git describe --tags --match 'v*' "${commit_sha}" 2>/dev/null | sed -e 's/^v//; ...') || commit_version="dev"

This handles forks and shallow clones that lack upstream version tags without affecting builds that do have tags.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'Build containers' Fix "Build containers" CI failure when repository has no v* git tags Jul 14, 2026
Copilot AI requested a review from bramhanandlingala July 14, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants