Files
snk/action.yml
release bot aebc3a9285 📦 3.0.0
2023-07-17 20:57:38 +00:00

32 lines
1.2 KiB
YAML

name: "generate-snake-game-from-github-contribution-grid"
description: "Generates a snake game from a github user contributions grid. Output the animation as gif or svg"
author: "platane"
runs:
using: docker
image: docker://platane/snk@sha256:753878055e52fbbaf3148fdac4590e396f97581f1dc4c1f861701add7a1dc1b5
inputs:
github_user_name:
description: "github user name"
required: true
outputs:
required: false
default: null
description: |
list of files to generate.
one file per line. Each output can be customized with options as query string.
supported query string options:
- palette: A preset of color, one of [github, github-dark, github-light]
- color_snake: Color of the snake
- color_dots: Coma separated list of dots color.
The first one is 0 contribution, then it goes from the low contribution to the highest.
Exactly 5 colors are expected.
example:
outputs: |
dark.svg?palette=github-dark&color_snake=blue
light.svg?color_snake=#7845ab
ocean.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9