Merge pull request #15 from NKPmedia/main
Added the requirements file to the options
This commit is contained in:
commit
5a4cb8819f
|
@ -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 }}
|
||||
|
|
|
@ -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 ]
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue