Merge pull request #15 from NKPmedia/main

Added the requirements file to the options
This commit is contained in:
Jack McKew 2021-04-16 09:16:12 +10:00 committed by GitHub
commit 5a4cb8819f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -21,6 +21,10 @@ inputs:
description: 'Specify a file path for .spec file'
required: False
default: ""
requirements:
description: 'Specify a file path for requirements.txt file'
required: False
default: "requirements.txt"
outputs:
output:
description: 'The output of PyInstaller'
@ -33,3 +37,4 @@ runs:
- ${{ inputs.pypi_url }}
- ${{ inputs.pypi_index_url }}
- ${{ inputs.spec }}
- ${{ inputs.requirements }}

View File

@ -41,9 +41,9 @@ fi
cd $WORKDIR
if [ -f requirements.txt ]; then
pip install -r requirements.txt
fi # [ -f requirements.txt ]
if [ -f $5 ]; then
pip install -r $5
fi # [ -f $5 ]