Skip to content

Commit 11cf4cd

Browse files
authored
Merge pull request #67 from apache/opt-req
Requirments.txt should be truly optional
2 parents ce85f08 + b41ec7e commit 11cf4cd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pelican/action.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ inputs:
3030
required: false
3131
default: '4.5.4'
3232
requirements:
33-
description: "Python requirements file name to install. Default=requirements.txt"
33+
description: "Python requirements file name to install (default: None)"
3434
required: false
35-
default: 'requirements.txt'
3635
fatal:
3736
description: "Value for --fatal option [errors|warnings] - sets exit code to error (default: errors)"
3837
required: false
@@ -93,12 +92,10 @@ runs:
9392
- name: Generate website from markdown
9493
shell: bash
9594
run: |
96-
if [ -f "${{ inputs.requirements }}" ]
95+
if [ -n "${{ inputs.requirements }}" ]
9796
then
9897
echo "Installing python requirements from ${{ inputs.requirements }}"
9998
pip3 install -r ${{ inputs.requirements }}
100-
else
101-
echo "Requirements file ${{ inputs.requirements }} does not exist"
10299
fi
103100
if [ "${{ inputs.debug }}" == 'true' ]
104101
then

0 commit comments

Comments
 (0)