Skip to content

Commit 12d7d25

Browse files
committed
Install requirements before running plugin_paths.py
1 parent 04ca322 commit 12d7d25

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pelican/action.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ runs:
9292
- name: Generate website from markdown
9393
shell: bash
9494
run: |
95+
if [ -f "${{ inputs.requirements }}" ]
96+
then
97+
echo "Installing python requirements from ${{ inputs.requirements }}"
98+
pip3 install -r ${{ inputs.requirements }}
99+
else
100+
echo "Requirements file ${{ inputs.requirements }} does not exist"
101+
fi
95102
if [ "${{ inputs.debug }}" == 'true' ]
96103
then
97104
OPTS='-D'
@@ -105,13 +112,6 @@ runs:
105112
echo "Getting plugins from action location: ${{ github.action_path }}"
106113
PP=$(python3 ${{ github.action_path }}/plugin_paths.py '${{ github.action_path }}/plugins')
107114
set -x # Show the expanded variables
108-
if [ -f "${{ inputs.requirements }}" ]
109-
then
110-
echo "Installing python requirements from ${{ inputs.requirements }}"
111-
pip3 install -r ${{ inputs.requirements }}
112-
else
113-
echo "Requirements file ${{ inputs.requirements }} does not exist"
114-
fi
115115
python3 -B -m pelican content -e "$PP" -o ${{ inputs.tempdir }} $OPTS
116116
117117
- name: Check out previous branch

0 commit comments

Comments
 (0)