Update Repos #190
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 Repos | |
| on: | |
| schedule: | |
| - cron: '0 3 * * *' | |
| workflow_dispatch: | |
| # This enables manual triggering | |
| jobs: | |
| update-repos: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run fetchRepos script | |
| run: npm start | |
| - name: Commit changes | |
| run: | | |
| git config --local user.email "[email protected]" | |
| git config --local user.name "Mark Conroy" | |
| git add assets/repos.json | |
| git commit -m "nightly update" || echo "No changes to commit" | |
| git push |