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'
|
description: 'Specify a file path for .spec file'
|
||||||
required: False
|
required: False
|
||||||
default: ""
|
default: ""
|
||||||
|
requirements:
|
||||||
|
description: 'Specify a file path for requirements.txt file'
|
||||||
|
required: False
|
||||||
|
default: "requirements.txt"
|
||||||
outputs:
|
outputs:
|
||||||
output:
|
output:
|
||||||
description: 'The output of PyInstaller'
|
description: 'The output of PyInstaller'
|
||||||
|
@ -33,3 +37,4 @@ runs:
|
||||||
- ${{ inputs.pypi_url }}
|
- ${{ inputs.pypi_url }}
|
||||||
- ${{ inputs.pypi_index_url }}
|
- ${{ inputs.pypi_index_url }}
|
||||||
- ${{ inputs.spec }}
|
- ${{ inputs.spec }}
|
||||||
|
- ${{ inputs.requirements }}
|
||||||
|
|
|
@ -41,9 +41,9 @@ fi
|
||||||
|
|
||||||
cd $WORKDIR
|
cd $WORKDIR
|
||||||
|
|
||||||
if [ -f requirements.txt ]; then
|
if [ -f $5 ]; then
|
||||||
pip install -r requirements.txt
|
pip install -r $5
|
||||||
fi # [ -f requirements.txt ]
|
fi # [ -f $5 ]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue