Update Userscripts Data #29
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 Userscripts Data | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Update data | |
| run: bun run update:userscripts | |
| - name: Commit changes | |
| run: | | |
| git config --local user.name "Mousebot" | |
| git config --local user.email "mousebot@mouse.rip" | |
| git add . | |
| git commit -m "Update data" || echo "No changes to commit" | |
| - name: Push changes | |
| run: | | |
| git push origin main || echo "No changes to push" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |