Skip to content

Commit

Permalink
feat: Support pipenv and poetry
Browse files Browse the repository at this point in the history
Dynamically convert pipenv and poetry locks to requirements format for ucc/pip
  • Loading branch information
rfaircloth-splunk committed Jul 14, 2021
1 parent 3a3e749 commit 5606d32
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 5606d32

Please sign in to comment.