@@ -14,7 +14,7 @@ inputs:
14
14
cache :
15
15
description : Cache folder
16
16
required : false
17
- default : ' /tmp '
17
+ default : ' ./cache '
18
18
datasources :
19
19
description : Custom datasources folder
20
20
required : true
@@ -31,25 +31,30 @@ inputs:
31
31
runs :
32
32
using : ' composite'
33
33
steps :
34
- - name : Install GitPortfolio
34
+ - name : Clones the latest version of GitPortfolio
35
+ uses : actions/checkout@v4
36
+ with :
37
+ repository : iosifache/gitportfolio
38
+ path : ./gitportfolio
39
+ - name : Installs GitPortfolio
35
40
shell : bash
36
- run : |
37
- pip install githubportfolio
41
+ run : pip install ./gitportfolio
38
42
- name : Run GitPortfolio
39
43
shell : bash
40
44
env :
41
- GITHUB_PAT : ${{ github.event. inputs.pat }}
45
+ GITHUB_PAT : ${{ inputs.pat }}
42
46
run : |
43
47
args=()
44
48
45
- if [[ "${{ github.event. inputs.update }}" = "true" ]]; then
49
+ if [[ "${{ inputs.update }}" = "true" ]]; then
46
50
args+=(--update)
47
51
fi
48
52
49
- gitportfolio \
50
- --config ${{ github.event.inputs.config }} \
51
- --cache ${{ github.event.inputs.cache }} \
52
- --datasources ${{ github.event.inputs.datasources }} \
53
- --template ${{ github.event.inputs.template }} \
54
- --output ${{ github.event.inputs.output }} \
55
- "${args[@]}"
53
+ gitportfolio \
54
+ --config ${{ inputs.config }} \
55
+ --cache ${{ inputs.cache }} \
56
+ --datasources ${{ inputs.datasources }} \
57
+ --template ${{ inputs.template }} \
58
+ --output ${{ inputs.output }} \
59
+ "${args[@]}" \
60
+ 2>/dev/null
0 commit comments