-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
64 lines (61 loc) · 2.04 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
55
56
57
58
59
60
61
62
63
64
name: 'Github Level System'
author: 'devfle'
description: 'Readme level up is a small action that converts interactions made on GitHub into experience points.'
inputs:
github_token:
description: 'A Github token that allows to communicate with the GitHub GraphQL API. The default should be sufficient.'
required: false
default: ${{ github.token }}
github_username:
description: 'Your GitHub username to communicate with the GitHub API'
required: true
default: ''
progress_bar_char_length:
description: 'The character length of the Progress bar'
required: false
default: 30
empty_bar:
description: 'The character for the empty state of the progress bar'
required: false
default: '░'
filled_bar:
description: 'The character for the filled state of the progress bar'
required: false
default: '█'
readme_path:
description: 'The path to the markdown file to be edited'
required: false
default: './README.md'
show_ep_info:
description: 'If true, shows an pre element with all ep information'
required: false
default: true
card_title:
description: 'The title of the level up card'
required: false
default: 'My Github level 🎊'
runs:
using: 'composite'
steps:
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: install packages
run: pip install -r $GITHUB_ACTION_PATH/requirements.txt
shell: bash
- name: run script
run: python $GITHUB_ACTION_PATH/main.py
shell: bash
env:
INPUT_GITHUB_TOKEN: ${{ inputs.github_token }}
INPUT_GITHUB_USERNAME: ${{ inputs.github_username }}
INPUT_PROGRESS_BAR_CHAR_LENGTH: ${{ inputs.progress_bar_char_length }}
INPUT_EMPTY_BAR: ${{ inputs.empty_bar }}
INPUT_FILLED_BAR: ${{ inputs.filled_bar }}
INPUT_README_PATH: ${{ inputs.readme_path }}
INPUT_SHOW_EP_INFO: ${{ inputs.show_ep_info }}
INPUT_CARD_TITLE: ${{ inputs.card_title }}
branding:
icon: 'arrow-up-circle'
color: 'blue'