Skip to content

Commit 1b4a62a

Browse files
authored
Fixed pat issue
1 parent 70666e5 commit 1b4a62a

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

action.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,61 @@
1-
name: GitHub Readme Stats Action
2-
description: Generate GitHub Readme Stats cards in GitHub Actions.
3-
author: readme-tools
1+
name: GitHub Readme Stats Fast Action
2+
description: Generate GitHub Readme Stats cards using fast renderer.
3+
author: Pranesh-2005
44

55
inputs:
66
card:
7-
description: Card type to generate (stats, top-langs, pin, wakatime, gist).
7+
description: Card type (stats, top-langs, pin, streak, wakatime, gist)
88
required: true
9+
910
options:
10-
description: Options for the card (query string or JSON).
11+
description: Query options (query string or JSON)
1112
required: false
1213
default: ""
14+
1315
path:
14-
description: Output path for SVG file (relative path; include filename with .svg).
16+
description: Output SVG path
1517
required: false
1618
default: ""
19+
1720
token:
18-
description: GitHub token (PAT or GITHUB_TOKEN).
21+
description: GitHub token (PAT or GITHUB_TOKEN)
1922
required: false
2023
default: ""
2124

2225
outputs:
2326
path:
24-
description: Path where the SVG file was written.
27+
description: Path of generated SVG
2528

2629
runs:
2730
using: composite
2831
steps:
32+
# ✅ Install Node
2933
- name: Setup Node
3034
uses: actions/setup-node@v4
3135
with:
3236
node-version: 22
33-
cache: pnpm
3437

38+
# ✅ Install pnpm
3539
- name: Setup pnpm
3640
uses: pnpm/action-setup@v4
3741
with:
3842
version: 9
3943

44+
# ✅ Install deps via pnpm
4045
- name: Install dependencies
4146
run: pnpm install --prod --frozen-lockfile
4247
shell: bash
4348
working-directory: ${{ github.action_path }}
4449

50+
# ✅ Run generator
4551
- name: Generate card
4652
run: node ${{ github.action_path }}/index.js
4753
shell: bash
4854
env:
4955
INPUT_CARD: ${{ inputs.card }}
5056
INPUT_OPTIONS: ${{ inputs.options }}
5157
INPUT_PATH: ${{ inputs.path }}
52-
# 👇 fallback handled in JS, not YAML
5358
PAT_1: ${{ inputs.token }}
54-
GITHUB_TOKEN: ${{ github.token }}
5559

5660
branding:
5761
icon: bar-chart-2

0 commit comments

Comments
 (0)