Skip to content

generate pacman game #40

generate pacman game

generate pacman game #40

Workflow file for this run

name: generate pacman game
on:
schedule:
- cron: "0 */6 * * *" # Every 6 hours (reduce frequency to avoid overload)
workflow_dispatch:
push:
branches:
- main
jobs:
generate:
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 10 # Increase timeout
steps:
# 🔥 Increase Node memory (MOST IMPORTANT)
- name: Increase Node memory
run: echo "NODE_OPTIONS=--max-old-space-size=8192" >> $GITHUB_ENV
# 🟢 Generate pacman graph
- name: generate pacman-contribution-graph-dark.svg
uses: DuyetBKU/viz-pacman-github-profile@main
with:
github_user_name: ${{ github.repository_owner }}
github_token: ${{ secrets.GITHUB_TOKEN }}
theme: react-dark # Options: github-light, github-dark, gitlab-light, gitlab-dark, react-light, react-dark, dracula-light, dracula-dark, monokai-light, monokai-dark, solarized-light, solarized-dark
music: 'false' # Set to 'true' to enable music
# 🚀 Push to output branch
- name: push pacman-contribution-graph-dark.svg to the output branch
uses: crazy-max/ghaction-github-pages@v3.1.0
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }}