ci: exclude workflow file from codeant review
All checks were successful
CodeAnt AI Review - Stage 1 / codeant-review (push) Successful in 1m3s
All checks were successful
CodeAnt AI Review - Stage 1 / codeant-review (push) Successful in 1m3s
This commit is contained in:
@@ -92,11 +92,13 @@ jobs:
|
||||
|
||||
- name: Run CodeAnt Review
|
||||
run: |
|
||||
REVIEW_EXCLUDES=".gitea/workflows/codeant.yml"
|
||||
|
||||
if [ "${GITHUB_EVENT_NAME}" = "pull_request" ] && [ -n "${GITHUB_BASE_REF}" ]; then
|
||||
echo "Running PR review against base branch: ${GITHUB_BASE_REF}"
|
||||
for attempt in 1 2 3; do
|
||||
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
|
||||
break
|
||||
fi
|
||||
@@ -113,7 +115,7 @@ jobs:
|
||||
echo "Regular push - reviewing last commit"
|
||||
for attempt in 1 2 3; do
|
||||
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
|
||||
break
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user