Scheduled Repo Search #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
| # File: .github/workflows/search.yml | |
| name: Cloudflare Worker Repository Search | |
| on: | |
| schedule: | |
| - cron: '0 0 * * 0' | |
| workflow_dispatch: | |
| jobs: | |
| execute-search: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install requests | |
| - name: Run Search Script | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GHUB_TOKEN }} | |
| run: python scripts/github/workflows/search_repos.py | |
| - name: Upload Search Results Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: search-results-json | |
| # Updated to target the exact explicit path written by the Python script | |
| path: scripts/github/workflows/results.json | |
| retention-days: 14 | |
| if-no-files-found: error |