Repository navigation
Get Repo Info #973
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: Get Repo Info | |
| # Run every day at noon or when button clicked | |
| on: | |
| schedule: | |
| - cron: "0 12 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| get-info-and-push: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.14.0" | |
| - name: Install deps | |
| run: | | |
| npm install | |
| - name: Get Repo Info | |
| run: | | |
| npm run update | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Commit Repo Changes | |
| run: | | |
| git config --local user.email "q2d2.noreply@gmail.com" | |
| git config --local user.name "q2d2" | |
| git add . | |
| git commit -m "Updated Repo Info" | |
| git push |