ci: exclude workflow file from codeant review
All checks were successful
CodeAnt AI Review - Stage 1 / codeant-review (push) Successful in 1m3s

This commit is contained in:
WDI-Ideas
2026-03-30 03:19:18 +05:30
parent 64f313e9d0
commit f472f2c6ec

View File

@@ -92,11 +92,13 @@ jobs:
- name: Run CodeAnt Review - name: Run CodeAnt Review
run: | run: |
REVIEW_EXCLUDES=".gitea/workflows/codeant.yml"
if [ "${GITHUB_EVENT_NAME}" = "pull_request" ] && [ -n "${GITHUB_BASE_REF}" ]; then if [ "${GITHUB_EVENT_NAME}" = "pull_request" ] && [ -n "${GITHUB_BASE_REF}" ]; then
echo "Running PR review against base branch: ${GITHUB_BASE_REF}" echo "Running PR review against base branch: ${GITHUB_BASE_REF}"
for attempt in 1 2 3; do for attempt in 1 2 3; do
echo "PR review attempt $attempt/3" echo "PR review attempt $attempt/3"
codeant review --base "${GITHUB_BASE_REF}" 2>&1 | tee review.txt || true codeant review --base "${GITHUB_BASE_REF}" --exclude "${REVIEW_EXCLUDES}" 2>&1 | tee review.txt || true
if ! grep -q "Unexpected token '<'" review.txt; then if ! grep -q "Unexpected token '<'" review.txt; then
break break
fi fi
@@ -113,7 +115,7 @@ jobs:
echo "Regular push - reviewing last commit" echo "Regular push - reviewing last commit"
for attempt in 1 2 3; do for attempt in 1 2 3; do
echo "Push review attempt $attempt/3" echo "Push review attempt $attempt/3"
codeant review --last-commit 2>&1 | tee review.txt || true codeant review --last-commit --exclude "${REVIEW_EXCLUDES}" 2>&1 | tee review.txt || true
if ! grep -q "Unexpected token '<'" review.txt; then if ! grep -q "Unexpected token '<'" review.txt; then
break break
fi fi