From 48e04702b2d3d0be00da6563da50269506daa758 Mon Sep 17 00:00:00 2001 From: Jens Schmitz Date: Thu, 4 May 2023 22:54:53 +0200 Subject: [PATCH] use input for directory --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/action.yml b/action.yml index fef4058..1ed5784 100644 --- a/action.yml +++ b/action.yml @@ -1,7 +1,15 @@ name: 'Pnpm install' description: 'Install pnpm with cache' +inputs: + directory: + description: 'Working directory' + required: false + default: '.' runs: using: "composite" + defaults: + run: + working-directory: ${{ inputs.directory }} steps: - uses: pnpm/action-setup@v2 name: Install pnpm