-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
50 lines (50 loc) · 1.42 KB
/
action.yml
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
45
46
47
48
49
50
name: ghstat
description: Calculate Lines of Code (LoC) written for a GitHub user
inputs:
github-token:
description: Token with read access to all analysed repos & gist write access
required: true
gist-id:
description: ID of gist in which to store generated graphs
required: false
default: ''
author:
description: Git author name to search for in commit (default inferred from github-token)
required: false
default: ''
user:
description: GitHub username to analyse (default inferred from github-token)
required: false
default: ''
repos-incl:
description: GitHub repositories to include
required: false
default: ''
repos-skip:
description: Repositories and organisations to skip
required: false
default: ''
lang-names:
description: Language names for extensions (e.g. `conf:INI cuh:Cuda`)
required: false
default: ''
runs:
using: composite
steps:
- name: setup
run: pip install -r ${{ github.action_path }}/requirements.txt
shell: bash
- name: ghstat
run: ${{ github.action_path }}/ghstat.sh
shell: bash
env:
GH_TOKEN: ${{ inputs.github-token }}
GH_GIST_ID: ${{ inputs.gist-id }}
AUTHOR: ${{ inputs.author }}
GH_USER: ${{ inputs.user }}
REPOS_INCL: ${{ inputs.repos-incl }}
REPOS_SKIP: ${{ inputs.repos-skip }}
LANG_NAMES: ${{ inputs.lang-names }}
branding:
icon: pie-chart
color: purple