Generate Roadmap #25
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 0 * * 2' # Runs every Monday at 00:00 UTC | |
| workflow_dispatch: | |
| jobs: | |
| generate-roadmap: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Generate ROADMAP.md | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const generateRoadmap = require('./.github/scripts/generate-roadmap.js'); | |
| await generateRoadmap({github, context}); | |
| - name: Commit and push changes | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| git config --global user.name "GitHub Actions" | |
| git config --global user.email "actions@github.com" | |
| git remote set-url origin https://x-access-token:$GITHUB_TOKEN@github.com/${{ github.repository }}.git | |
| git add ROADMAP.md | |
| git diff --quiet && git diff --staged --quiet || git commit -m "Update ROADMAP.md" | |
| git push |