name: Check Provider URLs on: schedule: - cron: '0 0 * * *' # Run daily at midnight UTC workflow_dispatch: # Allow manual triggering permissions: contents: write jobs: check-urls: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 with: token: ${{ secrets.PAT }} - name: Set up Node.js uses: actions/setup-node@v3 with: node-version: '18' - name: Install dependencies run: npm install axios - name: Run URL checker run: node .github/scripts/url-checker.js # Use a dedicated GitHub Action for commits and pushes - name: Commit and push changes uses: EndBug/add-and-commit@v9 with: add: 'modflix.json' message: 'Update provider URLs [skip ci]' default_author: github_actions push: true github_token: ${{ secrets.PAT }}