diff --git a/action.yml b/action.yml index 44af939..d913458 100644 --- a/action.yml +++ b/action.yml @@ -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 }} diff --git a/entrypoint.sh b/entrypoint.sh index 06ef8a0..63e443f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 ]