Skip to content

Commit 27b268f

Browse files
committed
fix: simplify enhanced-ci.yml conditional logic
- Simplified git commit logic in enhanced-ci.yml - Removed complex conditional formatting that was causing YAML parsing issues - Enhanced-ci.yml now has cleaner, more maintainable structure - Remaining: Minor indentation fixes in optimized-ci.yml This commit significantly improves the workflow file structure and should resolve most YAML validation issues.
1 parent 861e5e2 commit 27b268f

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

.github/workflows/enhanced-ci.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -158,24 +158,11 @@ jobs:
158158
run: |
159159
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
160160
git config --local user.name "github-actions[bot]"
161-
162-
if ! git diff --quiet; then
163-
git add .
164-
165-
COMMIT_MSG="auto-fix: apply code quality fixes"
166-
if [[ "${{ steps.format-check.outputs.format_fixed }}" == "true" ]]; then
167-
COMMIT_MSG="$COMMIT_MSG
168-
- Apply cargo fmt formatting"
169-
fi
170-
if [[ "${{ steps.clippy-check.outputs.clippy_fixed }}" == "true" ]]; then
171-
COMMIT_MSG="$COMMIT_MSG
172-
- Apply clippy suggestions"
173-
fi
174-
175-
git commit -m "$COMMIT_MSG"
176-
git push
177-
echo "✅ Code quality fixes applied and pushed!"
178-
fi
161+
if [[ $(git status --porcelain) ]]; then
162+
git add .
163+
git commit -m "chore: auto-fix formatting and clippy issues"
164+
git push
165+
fi
179166
180167
# Security scanning (comprehensive)
181168
security-scan:

0 commit comments

Comments
 (0)