Update stars #7332
This file contains 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: Update stars | |
on: | |
schedule: | |
# hourly | |
- cron: 0 */6 * * * | |
jobs: | |
update_stars: | |
runs-on: ubuntu-latest | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@v2, with: { fetch-depth: 1 } }, | |
{ name: 'Install Python', uses: actions/setup-python@v4, with: { python-version: 3.10.5, architecture: x64 } }, | |
{ name: 'Install Requests', run: 'pip install --user requests' }, | |
{ name: 'Update stars', run: 'python update.py --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} starcount' }, | |
{ name: 'Commit changes', run: 'python update.py --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} commit' }] |