-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
34 lines (33 loc) 路 1.03 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
name: Readme Projects Display
author: Kaustubh Gupta
description: Updates Readme/specified file with latest projects information
inputs:
gh_token:
description: "Github Personal Access token"
required: True
file_name:
description: "Name of the file"
required: False
default: README.md
max_repo_description:
description: "How much description you want to Display"
required: False
default: 50
allow_forks:
description: "Control if you want forks count"
required: False
default: True
project_sort_by:
description: "Sorting the projects according to count of number of stars or forks"
required: False
default: 'stars'
runs:
using: "composite"
steps:
- run: python -m pip install PyGithub
shell: bash
- run: python ${{ github.action_path }}/main-script.py ${{ inputs.gh_token }} ${{ inputs.file_name }} ${{ github.workspace }} ${{ inputs.max_repo_description }} ${{ inputs.allow_forks }} ${{ inputs.project_sort_by }}
shell: bash
branding:
icon: "award"
color: "blue"