Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciNyan committed Aug 14, 2024
1 parent be53f56 commit 89e2ddb
Show file tree
Hide file tree
Showing 9 changed files with 26,637 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/manual-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: manual run

on:
push:
branches:
- feat-github-action
workflow_dispatch:



jobs:
generate:
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: LuciNyan/pixel-profile/action@feat-github-action
with:
github_user_name: ${{ github.repository_owner }}
outputs: |
dist/only-svg/github-contribution-grid-snake.svg
dist/only-svg/github-contribution-grid-snake-dark.svg?palette=github-dark
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ vercel_token
*.code-workspace

dist
__diff_output__/
!action/dist
__diff_output__/
36 changes: 36 additions & 0 deletions action/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "generate-pixel-github-stats"
description: "Generates a github stats card from a github user contributions."
author: "platane"

runs:
using: node20
main: dist/index.js

inputs:
github_user_name:
description: "github user name"
required: true
github_token:
description: "github token used to fetch the contribution calendar. Default to the action token if empty."
required: false
default: ${{ github.token }}
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.svg?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9
Loading

0 comments on commit 89e2ddb

Please sign in to comment.