Update Monthly Changelog #322
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 Monthly Changelog | |
| on: | |
| schedule: | |
| - cron: "30 7 * * *" # 11:30pm PST | |
| workflow_dispatch: | |
| jobs: | |
| update-changelog: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Generate changelog | |
| run: bun scripts/generate-monthly-changelog.ts | |
| env: | |
| OPENAI_API_KEY: ${{ secrets.TSCIRCUIT_BOT_OPENAI_KEY }} | |
| - name: Commit changes | |
| run: | | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git add changelogs | |
| git diff --quiet && git diff --staged --quiet || git commit -m "Update monthly changelog" | |
| - name: Push changes | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: main |