Skip to content

Commit 7ecd037

Browse files
first commit
0 parents  commit 7ecd037

File tree

4 files changed

+433
-0
lines changed

4 files changed

+433
-0
lines changed

.github/workflows/lang-usage.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: GitHub Profile Language Visualizer
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
visualize:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Run GitHub Profile Language Visualizer
18+
uses: Platane/snk@v3
19+
with:
20+
github_user_name: 'Kirito666coder'
21+
outputs: |
22+
dist/github-contribution-grid-snake.svg
23+
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
24+
dist/github-contribution-grid-snake.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# GitHub Action for generating a contribution graph with a snake eating your contributions.
2+
name: Generate Snake
3+
4+
# Controls when the action will run.
5+
on:
6+
schedule:
7+
# every 12 hours
8+
- cron: "0 */12 * * *"
9+
10+
# This command allows us to run the Action automatically from the Actions tab.
11+
workflow_dispatch:
12+
13+
# Also run on every push on the main branch
14+
push:
15+
branches:
16+
- main
17+
18+
# The sequence of runs in this workflow:
19+
jobs:
20+
# This workflow contains a single job called "build"
21+
build:
22+
# The type of runner that the job will run on
23+
runs-on: ubuntu-latest
24+
25+
# Steps represent a sequence of tasks that will be executed as part of the job
26+
steps:
27+
- name: Clone repo
28+
uses: actions/checkout@v3
29+
30+
- name: Generate the snake files in './dist/'
31+
uses: Platane/snk@v3
32+
id: snake-gif
33+
with:
34+
github_user_name: ${{ github.repository_owner }}
35+
outputs: |
36+
dist/github-contribution-grid-snake.svg
37+
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
38+
dist/github-contribution-grid-snake.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
42+
- name: Show build status
43+
run: git status
44+
45+
- name: Push new files to the output branch
46+
uses: crazy-max/ghaction-github-pages@v3.1.0
47+
with:
48+
target_branch: output
49+
build_dir: dist
50+
commit_message: Update snake animations
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy