Skip to content

Run Interface Status Check #11326

Run Interface Status Check

Run Interface Status Check #11326

name: Run Interface Status Check
permissions:
contents: write
on:
schedule:
- cron: "*/30 * * * *" # Every 30 minutes
workflow_dispatch: # Allow manual trigger
jobs:
check-interfaces:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install beautifulsoup4 aiohttp
- name: Run Interface Check Script
run: python _luminara-homebase/scripts/interfaces_check.py
- name: Commit & Push interface-status.json
run: |
git config user.name "GitHub Action"
git config user.email "action@github.com"
git stash || echo "ℹ️ Nothing to stash"
git pull --rebase origin main
git stash pop || echo "ℹ️ Nothing to pop"
if [ -f "_luminara-homebase/interface-status.json" ]; then
git add -f _luminara-homebase/interface-status.json
if git diff --cached --quiet; then
echo "✅ No changes to commit"
else
git commit -m "Update interface-status.json"
git push
fi
else
echo "⚠️ File not generated – nothing to commit"
fi