Sync GitHub Stars #67
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: Sync GitHub Stars | |
| permissions: | |
| contents: write | |
| on: | |
| schedule: | |
| # Jeden Tag um 6 Uhr UTC | |
| - cron: '0 6 * * *' | |
| # Auch manuell triggern | |
| workflow_dispatch: | |
| jobs: | |
| sync-stars: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: Sync GitHub stars | |
| run: npm run sync-github-stars | |
| - name: Build with GitHub stars | |
| run: npm run build | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| - name: Commit changes | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: 'chore: update GitHub stars config' | |
| file_pattern: 'src/config/github-stars-config.json' | |
| commit_user_name: 'github-actions[bot]' | |
| commit_user_email: '41898282+github-actions[bot]@users.noreply.github.com' |