Generate Monthly Product Updates #2
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 Monthly Product Updates | |
| on: | |
| schedule: [{cron: '0 0 1 * *'}] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| ref: 'product-updates' | |
| - uses: actions/setup-node@v3 | |
| with: {node-version: '18'} | |
| - run: npm install | |
| - env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
| REPOSITORIES: "hotwax/facilities, hotwax/bopis, hotwax/receiving, hotwax/inventory-count, hotwax/fulfillment, hotwax/order-routing, hotwax/users, hotwax/job-manager, hotwax/transfers" | |
| run: node scripts/generate_updates.js | |
| - uses: peter-evans/create-pull-request@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| title: "Monthly Product Update" | |
| branch: "docs/product-update" | |
| base: "product-updates" |