From 73f6764225af23564c1677cc5ffc48bc66e619cb Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 28 Mar 2023 15:05:52 +0100 Subject: [PATCH] Add option to not install the project (#18) Fixes #15 --- action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index c9df57a..9733181 100644 --- a/action.yml +++ b/action.yml @@ -24,6 +24,12 @@ inputs: `poetry install --with ...`. required: false default: "" + install-project: + description: > + Set to "false" to disable installing of the project, instead only install + deps. + required: false + default: "true" runs: using: composite steps: @@ -95,13 +101,13 @@ runs: - name: Install project (no extras or groups) if: inputs.extras == '' && inputs.groups == '' - run: poetry install --no-interaction + run: poetry install --no-interaction ${{ inputs.install-project != 'true' && '--no-root' || '' }} shell: bash - name: Install project with --extras=${{ inputs.extras }} --with=${{ inputs.groups }} if: inputs.extras != '' || inputs.groups != '' # (Empty extras or groups lists are fine.) - run: poetry install --no-interaction --extras="${{ inputs.extras }}" --with="${{ inputs.groups }}" + run: poetry install --no-interaction --extras="${{ inputs.extras }}" --with="${{ inputs.groups }}" ${{ inputs.install-project != 'true' && '--no-root' || '' }} shell: bash # For debugging---let's just check what we're working with.