Generate Starred Repositories #1058
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: Generate Starred Repositories | |
| on: | |
| schedule: | |
| - cron: 30 0 * * * | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout main | |
| uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v1 | |
| with: | |
| python-version: 3.7 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install starred | |
| - name: run stars | |
| run: starred --username ryanfortner --token ${{ secrets.GH_TOKEN }} --sort > README.md | |
| - name: push changes | |
| run: | | |
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git config --global user.name "github-actions[bot]" | |
| bash -c "git add . && git commit -m 'Update stars'" || true | |
| git push origin master |