name: Check Provider URLs on: schedule: - cron: "0 0 * * *" # Run daily at midnight UTC workflow_dispatch: # Allow manual triggering jobs: check-urls: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 - name: Set up Node.js uses: actions/setup-node@v3 with: node-version: "16" - name: Install dependencies run: npm install axios - name: Run URL checker run: node .github/scripts/url-checker.js - name: Commit changes if any run: | git config --global user.name 'GitHub Action' git config --global user.email 'action@github.com' git add modflix.json git diff --cached --quiet || git commit -m "Update provider URLs [skip ci]" && git push