Generate Roadmap #380
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: Generate Roadmap | |
| on: | |
| schedule: | |
| - cron: '0 */12 * * *' # Every 12 hours | |
| workflow_dispatch: # Allows manual triggering | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| working-directory: . | |
| - name: Generate Roadmap | |
| run: bun run index.ts roadmap | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_PROJECT_TOKEN }} | |
| GH_ORG_NAME: noekohq | |
| GH_PROJECT_NO: 1 | |
| GH_TARGET_FIELD: "roadmap Horizon" | |
| GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
| GEMINI_MODEL: "gemini-2.5-flash" | |
| - name: Commit and push changes | |
| run: | | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git add generated/roadmap.json | |
| git commit -m "docs: update roadmap [skip ci]" || echo "No changes to commit" | |
| git push |