Skip to content

Generate New Comic

Generate New Comic #5

name: Generate New Comic
on:
# schedule:
# - cron: '0 0 * * 0' # Runs every Sunday at midnight UTC; adjust as needed
workflow_dispatch:
jobs:
generate-comic:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Compile TypeScript
run: npm run build
- name: Generate comic
run: npm run generateComic
- name: Commit and push changes
run: |
git config user.name "Scrapinold Robot"
git config user.email "[email protected]"
git add .
git commit -m "NEW COMIC"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}