From 5606d3263db64ab52d9517cdee23b6525da788bd Mon Sep 17 00:00:00 2001 From: rfaircloth-splunk Date: Wed, 14 Jul 2021 14:21:00 -0400 Subject: [PATCH] feat: Support pipenv and poetry Dynamically convert pipenv and poetry locks to requirements format for ucc/pip --- action.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/action.yml b/action.yml index 8bd6f45..7a4da2c 100644 --- a/action.yml +++ b/action.yml @@ -27,6 +27,20 @@ outputs: runs: using: "composite" steps: + - run: | + if [ -f Pipfile.lock ]"; + then + mkdir -p package/lib || true + pipenv lock -r > package/lib/requirements.txt + fi + shell: bash + - run: | + if [ -f poetry.lock ]"; + then + mkdir -p package/lib || true + poetry export -f requirements.txt -o package/lib/requirements.txt + fi + shell: bash - run: | if [ ! -z $INPUT_VERSION ]; then ARG_VERSION="--ta-version=${INPUT_VERSION}"; fi echo "::set-output name=result::$(echo $ARG_VERSION)"