master
1name: My Badges
2description: Generates My Badges
3author: my-badges
4branding:
5 icon: award
6 color: blue
7inputs:
8 token:
9 description: Auth token
10 default: ${{ github.token }}
11 user:
12 description: Username
13 default: ${{ github.repository_owner }}
14 repo:
15 description: Repository name to push badges
16 size:
17 description: Badge size for README.md, px
18 dryrun:
19 description: Generate badges, but skip pushing them to git
20 omit:
21 description: "List of badges to exclude. For example, if you're too shy to flex your stars: omit: stars-100,stars-500,stars-1000 or even shorter omit: stars-*"
22 pick:
23 description: 'list of badges to pick. Pass pick: a-commit,ab-commit,revert-revert-commit to generate only the specified entries. If empty gets all of them'
24 compact:
25 description: 'Represent the highest tier badges in README.md. For example, If you have both stars-100 and stars-500 achievements, only the last one will be shown'
26runs:
27 using: composite
28 steps:
29 - shell: bash
30 run: npm install -g update-my-badges
31 - shell: bash
32 run: >-
33 update-my-badges --token "${{ inputs.token }}" --user "${{ inputs.user }}"
34 $([ "${{ inputs.repo }}" ] && echo --repo "${{ inputs.repo }}")
35 $([ "${{ inputs.size }}" ] && echo --size "${{ inputs.size }}")
36 $([ "${{ inputs.dryrun }}" = true ] && echo --dryrun)
37 $([ "${{ inputs.omit }}" ] && echo --omit "${{ inputs.omit }}")
38 $([ "${{ inputs.pick }}" ] && echo --pick "${{ inputs.pick }}")
39 $([ "${{ inputs.compact }}" = true ] && echo --compact)