File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 7
7
* tempdir Temporary Directory name (optional) default: ../output
8
8
* debug Pelican Debug mode (optional) default: false
9
9
* version Pelican Version (default 4.5.4) (optional) default: 4.5.4
10
+ * requirements Python Requirements file (optional) default: requirements.txt
10
11
11
12
## Example Workflow Usage:
12
13
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ inputs:
25
25
description : " Pelican Version (default 4.5.4)"
26
26
required : false
27
27
default : ' 4.5.4'
28
+ requirements :
29
+ description : " Python requirements file name to install. Default=requirements.txt"
30
+ required : false
31
+ default : ' requirements.txt'
28
32
fatal :
29
33
description : " Value for --fatal option [errors|warnings] - sets exit code to error (default: errors)"
30
34
required : false
@@ -97,6 +101,11 @@ runs:
97
101
echo "Getting plugins from action location: ${{ github.action_path }}"
98
102
PP=$(python3 ${{ github.action_path }}/plugin_paths.py '${{ github.action_path }}/plugins')
99
103
set -x # Show the expanded variables
104
+ if [ -f "${{ inputs.requirements }}" ]
105
+ then
106
+ echo "Installing python requirements from ${{ inputs.requirements }}"
107
+ pip3 install -r ${{ inputs.requirements }}
108
+ fi
100
109
python3 -B -m pelican content -e "$PP" -o ${{ inputs.tempdir }} $OPTS
101
110
102
111
- name : Check out previous branch
You can’t perform that action at this time.
0 commit comments