Skip to content

Commit 5f5174e

Browse files
dave2wavepotiuk
authored andcommitted
Implement conditional Python requirements installation
Add conditional installation of Python requirements if specified. Signed-off-by: Dave Fisher <dave2wave@comcast.net>
1 parent 4cb6872 commit 5f5174e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pelican/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ runs:
111111
- name: Generate website from markdown
112112
shell: bash
113113
run: |
114+
if [ -n "${{ inputs.requirements }}" ]
115+
then
116+
echo "Installing python requirements from ${{ inputs.requirements }}"
117+
PIP_BREAK_SYSTEM_PACKAGES=1 pip3 install -r ${{ inputs.requirements }}
118+
fi
114119
if [ "${{ inputs.debug }}" == 'true' ]
115120
then
116121
OPTS='-D'

0 commit comments

Comments
 (0)