🐛 fix: ensure single push in CI/CD workflow
All checks were successful
CI/CD Pipeline / Build Docker Cache (push) Successful in 11s
CI/CD Pipeline / CI Pipeline (push) Successful in 4m26s

This commit is contained in:
2026-04-08 16:43:22 +02:00
parent 14a8bc3714
commit 194b2aeb0e
3 changed files with 51 additions and 8 deletions

View File

@@ -253,25 +253,25 @@ jobs:
BDD_COV=${DLC_BDD_COVERAGE%"%"}
UNIT_COV=${DLC_UNIT_COVERAGE%"%"}
# Update BDD coverage badge if value is set
# Update BDD coverage badge if value is set (use --no-push to avoid race conditions)
if [ -n "$BDD_COV" ]; then
echo "📊 Updating BDD coverage badge to ${BDD_COV}%"
./scripts/ci-update-coverage-badge.sh "$BDD_COV" "bdd"
./scripts/ci-update-coverage-badge.sh "$BDD_COV" "bdd" --no-push
fi
# Update Unit coverage badge if value is set
# Update Unit coverage badge if value is set (use --no-push to avoid race conditions)
if [ -n "$UNIT_COV" ]; then
echo "📊 Updating Unit coverage badge to ${UNIT_COV}%"
./scripts/ci-update-coverage-badge.sh "$UNIT_COV" "unit"
./scripts/ci-update-coverage-badge.sh "$UNIT_COV" "unit" --no-push
fi
# Check for version bump on main branch
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
echo "🔖 Checking for version bump..."
./scripts/version-bump-auto.sh
./scripts/ci-version-bump.sh "${{ github.event.head_commit.message }}" --no-push
fi
# Single push for all commits
# Single push for all commits (this is the ONLY push in the entire workflow)
if [ -n "$(git status --porcelain)" ]; then
echo "💾 Changes detected, pushing all commits..."
git push