-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.3 KB
/
snake.yml
File metadata and controls
42 lines (36 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: generate animation
on:
# Automatically run every 24 hours
schedule:
- cron: "0 0 * * *"
# Allow manual run of the job at any time
workflow_dispatch:
# Run on every push to the main branch
push:
branches:
- main
jobs:
generate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
# Generate a snake game from a GitHub user's contributions graph
# Output SVG animations with different palettes
- name: Generate GitHub contribution grid snake SVG
uses: Platane/snk@v3
with:
github_user_name: ${{ github.repository_owner }}
outputs: |
dist/github-contribution-grid-snake.svg?palette=github
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
dist/github-contribution-grid-snake-light.svg?palette=github-light
# Push the content of the build directory to a branch
# The content will be available at https://raw.githubusercontent.com/<github_user>/<repository>/output/<file>,
# or as a GitHub page
- name: Push GitHub contribution grid snake 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.GITHUB_TOKEN }}