Update GitHub info #177
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: Update GitHub info | |
| 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: 'Update releases', run: 'python update.py --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} releases' }, | |
| { name: 'Detect Defold libraries', run: 'python update.py --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} library' }, | |
| { name: 'Update header', run: 'python update.py header' }, | |
| { name: 'Commit changes', run: 'python update.py --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} commit' }] |