-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
60 lines (58 loc) · 1.59 KB
/
action.yaml
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
name: Run GitPortfolio
description: Opinionated template engine analysing your GitHub profile and repositories
author: George-Andrei Iosif
branding:
icon: user
color: gray-dark
inputs:
config:
description: Configuration file
required: true
pat:
description: GitHub PAT
required: true
cache:
description: Cache folder
required: false
default: './cache'
datasources:
description: Custom datasources folder
required: true
template:
description: Template file
required: true
output:
description: Output file
required: true
update:
description: Boolean indicating if the configuration should be updated
required: false
default: "false"
runs:
using: 'composite'
steps:
- name: Clones the latest version of GitPortfolio
uses: actions/checkout@v4
with:
repository: iosifache/gitportfolio
path: ./gitportfolio
- name: Installs GitPortfolio
shell: bash
run: pip install ./gitportfolio
- name: Run GitPortfolio
shell: bash
env:
GITHUB_PAT: ${{ inputs.pat }}
run: |
args=()
if [[ "${{ inputs.update }}" = "true" ]]; then
args+=(--update)
fi
gitportfolio \
--config ${{ inputs.config }} \
--cache ${{ inputs.cache }} \
--datasources ${{ inputs.datasources }} \
--template ${{ inputs.template }} \
--output ${{ inputs.output }} \
"${args[@]}" \
2>/dev/null