Skip to content

Repository Health Check #236

Repository Health Check

Repository Health Check #236

Workflow file for this run

name: Repository Health Check
on:
schedule:
# Run daily at 6:00 AM UTC
- cron: '0 6 * * *'
push:
branches: [0.4.1]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
health-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Make health check executable
run: chmod +x scripts/health_check.sh
- name: Run repository health check
run: ./scripts/health_check.sh --verbose
continue-on-error: false
- name: Generate JSON health report
if: always()
run: |
# Install jq for JSON processing
sudo apt-get install -y jq
./scripts/health_check.sh --json > health_report.json
- name: Upload health report
if: always()
uses: actions/upload-artifact@v4
with:
name: health-report
path: health_report.json
retention-days: 30
- name: Health check summary
if: always()
run: |
echo "## Repository Health Report" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ -f health_report.json ]; then
echo '```json' >> $GITHUB_STEP_SUMMARY
cat health_report.json >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
else
echo "Health check completed. Check the logs for details." >> $GITHUB_STEP_SUMMARY
fi