From 3075f4a01bf297fe69c70db84ab81bb82b7d6d47 Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Wed, 22 May 2024 09:50:20 +0200 Subject: [PATCH] Update action.yml --- .github/actions/read-go-mod/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/actions/read-go-mod/action.yml b/.github/actions/read-go-mod/action.yml index c25dc31..966a45c 100644 --- a/.github/actions/read-go-mod/action.yml +++ b/.github/actions/read-go-mod/action.yml @@ -1,6 +1,11 @@ name: read go.mod description: Reads go.mod +inputs: + working-directory: + description: Specifies the working directory where the command is run. + required: false + outputs: json: description: JSON representation of go.mod @@ -22,4 +27,5 @@ runs: echo "No go.mod file found in $PWD." echo "json={}" | tee -a $GITHUB_OUTPUT fi + working-directory: ${{ inputs.working-directory || github.workspace }} shell: bash