-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 1.15 KB
/
generate-snake.yml
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
# GitHub Action for generating a contribution graph with a snake eating your contributions.
name: Generate Snake
on:
schedule:
- cron: "0 */6 * * *"
# - cron: "*/5 * * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Generate Snake
uses: Platane/snk@v3
id: snake-gif
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
github_user_name: ${{ github.repository_owner }}
# gif_out_path: ./assets/github-contribution-grid-snake.gif
# svg_out_path: ./assets/github-contribution-grid-snake.svg
outputs: |
./assets/github-snake.svg
./assets/github-snake-dark.svg?palette=github-dark
./assets/ocean.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9
- name: Upload to repo
run: |
git config --global user.email "[email protected]"
git config --global user.name "Augmedix Rafat"
git add .
git commit -m "chore: :+1: image snake"
git push --force