Normalize Repos #2191
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: Normalize Repos | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # Daily at midnight (00:00) | |
| workflow_dispatch: | |
| jobs: | |
| normalize_repos: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # https://github.com/actions/setup-python | |
| - name: Setup Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install system dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install pipenv | |
| # https://github.com/actions/checkout | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.ADMIN_GITHUB_TOKEN }} | |
| - name: Install app dependencies | |
| run: pipenv sync --system | |
| - name: Run script with token in env | |
| run: ./normalize_repos.py | |
| env: | |
| ADMIN_GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }} | |
| # https://github.com/actions/upload-artifact | |
| - name: Export a report of invalid issues | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: invalid-issue-report | |
| path: /tmp/invalid_issues.yml |