-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
54 lines (52 loc) · 1.46 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
51
52
53
54
name: "Contributions Badge"
description: "Showcase your number of merged pull requests in profile's README dynamically"
author: "Shubham Kumar @imskr"
inputs:
organization:
description: "Organization name"
default: "gitlab-org"
required: true
project:
description: "Project name"
required: true
platform:
description: "Projects on platform" # accepted values: "github" or "gitlab"
default: "github"
required: true
username:
description: "Username"
default: "imskr"
required: true
readme_path:
description: "Path of readme file"
default: "./README.md"
required: false
commit_user:
description: "Git username"
default: "contributions-badge-bot"
required: false
commit_email:
description: "Git user email"
default: "[email protected]"
required: false
commit_message:
description: "Git commit message"
default: "Update readme with latest contributions count"
required: false
outputs:
merged_count:
description: "Updated contributions count"
runs:
using: "docker"
image: "Dockerfile"
args:
- "-organization=${{ inputs.organization }}"
- "-project=${{ inputs.project }}"
- "-platform=${{ inputs.platform }}"
- "-username=${{ inputs.username }}"
- "-commit_user=${{ inputs.commit_user }}"
- "-commit_email=${{ inputs.commit_email }}"
- "-commit_message=${{ inputs.commit_message }}"
branding:
icon: 'file-text'
color: 'red'