Status Checks #5465
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Status Checks | |
on: | |
schedule: | |
- cron: '*/10 * * * *' # Run every 10 minutes | |
workflow_dispatch: # Allow manual triggers | |
jobs: | |
check-and-update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Full history for accurate logs | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Run checks and update logs | |
run: bun run scripts/run-checks-and-write-log.ts | |
- name: Generate README | |
run: bun run scripts/generate-readme.ts | |
- name: Build status site | |
run: bun run scripts/generate-site.tsx | |
- name: Configure Git | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "[email protected]" | |
- name: Commit and push if changes | |
run: | | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "Auto Update: ${timestamp}" || exit 0 | |
git push |