-
Notifications
You must be signed in to change notification settings - Fork 368
40 lines (35 loc) · 1.09 KB
/
snake.yml
File metadata and controls
40 lines (35 loc) · 1.09 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
name: Generate Snake Animation
on:
schedule:
- cron: "0 0 * * *" # Runs daily at midnight UTC
workflow_dispatch:
push:
branches:
- main
- master
jobs:
generate:
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Generate Snake Animation — Dark Mode
uses: Platane/snk@v3
with:
github_user_name: ${{ github.repository_owner }}
outputs: |
dist/github-snake-dark.svg?palette=github-dark&color_snake=#0070F3&color_dots=#333333,#0070F3,#00DFD8,#0070F3,#00DFD8
- name: Generate Snake Animation — Light Mode
uses: Platane/snk@v3
with:
github_user_name: ${{ github.repository_owner }}
outputs: |
dist/github-snake.svg?palette=github&color_snake=#0070F3&color_dots=#EAEAEA,#0070F3,#00DFD8,#0070F3,#00DFD8
- name: Push to output branch
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}