Skip to content

Generate Monthly Product Updates #1

Generate Monthly Product Updates

Generate Monthly Product Updates #1

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"