Skip to content

main

main #18

Workflow file for this run

name: main
on:
schedule:
- cron: '30 17 * * *'
workflow_dispatch:
jobs:
generate-snake:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: generate-snake-game-from-github-contribution-grid
id: generate-snake
uses: Platane/snk@v3
with:
github_user_name: Aeris1One
outputs: |
dist/github-contribution-grid-snake.svg
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
dist/github-contribution-grid-snake.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: ensure the generated file exists
run: |
ls dist
test -f dist/github-contribution-grid-snake.svg
test -f dist/github-contribution-grid-snake-dark.svg
test -f dist/github-contribution-grid-snake.gif
- uses: crazy-max/ghaction-github-pages@v3.1.0
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}