Test123/.forgejo/workflows/project-report.yml
2026-06-15 12:56:29 -05:00

64 lines
1.9 KiB
YAML

name: Project Report
on:
push:
pull_request:
jobs:
project-report:
runs-on: linux-dev
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run validation report pass
shell: bash
run: |
chmod +x tools/validate-code.sh
./tools/validate-code.sh
- name: Generate project report
shell: bash
run: |
chmod +x tools/project-report.sh
./tools/project-report.sh
- name: Show project report summary
shell: bash
run: |
test -f reports/project-flow.md
test -f reports/file-summary.md
test -f reports/languages.md
echo "===== PROJECT REPORT COMPLETE ====="
echo "Report generation completed"
echo "Files created or updated:"
if test -f reports/generated-files.md; then
sed -n '3,$p' reports/generated-files.md
else
echo "- reports/project-flow.md"
echo "- reports/file-summary.md"
echo "- reports/languages.md"
fi
echo "Customer code status:"
if test -f reports/customer-code-status.txt; then
cat reports/customer-code-status.txt
elif test -f reports/errors.md && grep -q "CUSTOMER CODE ERRORS FOUND\|NO CUSTOMER CODE ERRORS FOUND" reports/errors.md; then
grep -m 1 "CUSTOMER CODE ERRORS FOUND\|NO CUSTOMER CODE ERRORS FOUND" reports/errors.md
else
echo "CUSTOMER CODE STATUS UNKNOWN"
fi
if test -f reports/errors.md; then
echo
echo "===== VALIDATION SUMMARY EXCERPT ====="
sed -n '1,12p' reports/errors.md
fi
if test -f reports/summary.md; then
echo
echo "===== AUTOMATION SUMMARY ====="
cat reports/summary.md
fi