-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathaction.yml
More file actions
44 lines (44 loc) · 1.22 KB
/
action.yml
File metadata and controls
44 lines (44 loc) · 1.22 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
43
44
name: GitHub Readme Stats Action
description: Generate GitHub Readme Stats cards in GitHub Actions.
author: readme-tools
inputs:
card:
description: Card type to generate (stats, top-langs, pin, wakatime, gist).
required: true
options:
description: Options for the card (query string or JSON).
required: false
default: ""
path:
description: Output path for SVG file (relative path; include filename with .svg).
required: false
default: ""
token:
description: GitHub token (PAT or GITHUB_TOKEN).
required: false
default: ""
outputs:
path:
description: Path where the SVG file was written.
runs:
using: composite
steps:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "22"
- name: Install dependencies
run: npm ci --omit=dev --ignore-scripts
shell: bash
working-directory: ${{ github.action_path }}
- name: Generate card
run: node ${{ github.action_path }}/index.js
shell: bash
env:
INPUT_CARD: ${{ inputs.card }}
INPUT_OPTIONS: ${{ inputs.options }}
INPUT_PATH: ${{ inputs.path }}
PAT_1: ${{ inputs.token || github.token }}
branding:
icon: bar-chart-2
color: blue