This repository was archived by the owner on Jan 7, 2026. It is now read-only.
Add files via upload #6
This file contains hidden or 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: Check Certificate Statuses | |
| on: | |
| schedule: | |
| # Run daily at 00:00 UTC | |
| - cron: '0 0 * * *' | |
| # Also allow manual triggers | |
| workflow_dispatch: | |
| # Run on pushes to main branch (optional) | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| check-certificates: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install requests beautifulsoup4 lxml | |
| - name: Check certificate statuses | |
| run: | | |
| python scripts/check_certificates.py | |
| - name: Commit changes if any | |
| run: | | |
| git config --global user.name 'GitHub Actions' | |
| git config --global user.email 'actions@github.com' | |
| git add README.md | |
| if git diff --quiet HEAD -- README.md; then | |
| echo "No changes to commit" | |
| else | |
| git commit -m "📝 Update certificate statuses [$(date +'%Y-%m-%d %H:%M')]" | |
| git push | |
| fi |