From d22b0c4203ad0e172254042c3cb1effb1270c77d Mon Sep 17 00:00:00 2001 From: Paul Kruse Date: Wed, 14 Apr 2021 15:50:28 +0200 Subject: [PATCH 1/3] Added requirements input --- action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action.yml b/action.yml index 44af939..1c1546a 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' From ad7cee232cea50bb0971b9dd1a450a627172094e Mon Sep 17 00:00:00 2001 From: Paul Kruse Date: Wed, 14 Apr 2021 15:51:57 +0200 Subject: [PATCH 2/3] Added requirements option to the entrypoint script --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ] From a68442bab8c13764ebf9caed83ff2322e5126a60 Mon Sep 17 00:00:00 2001 From: Paul Kruse Date: Wed, 14 Apr 2021 15:55:35 +0200 Subject: [PATCH 3/3] Pass requirements option to docker --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 1c1546a..d913458 100644 --- a/action.yml +++ b/action.yml @@ -37,3 +37,4 @@ runs: - ${{ inputs.pypi_url }} - ${{ inputs.pypi_index_url }} - ${{ inputs.spec }} + - ${{ inputs.requirements }}