🐛 fix: ensure single push in CI/CD workflow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user