Skip to content

Commit d9fac44

Browse files
feat: add github action
1 parent 7a951f1 commit d9fac44

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

action.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "GitHub Profile Stats for README"
2+
description: "Update GitHub README with various statistics."
3+
4+
inputs:
5+
GITHUB_TOKEN:
6+
description: "GitHub token with permissions to update the README"
7+
required: true
8+
TIMEZONE:
9+
description: "The timezone to use for statistics calculation"
10+
required: false
11+
default: "America/Winnipeg"
12+
INCLUDES:
13+
description: |
14+
A comma-separated list of stats to include in the desired order.
15+
required: false
16+
default: "--include DAY_STATS --include WEEK_STATS"
17+
18+
runs:
19+
using: "docker"
20+
image: "Dockerfile"
21+
env:
22+
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
23+
TIMEZONE: ${{ inputs.TIMEZONE }}
24+
args:
25+
- ${{ inputs.INCLUDES }}
26+
27+
branding:
28+
icon: "activity"
29+
color: "orange"

0 commit comments

Comments
 (0)