From d7a9d6425c6da52a0996dae2dc7b8ccc6eba5660 Mon Sep 17 00:00:00 2001 From: Christian Stein Date: Tue, 30 Mar 2021 12:03:01 +0200 Subject: [PATCH] Add `working-directory` input --- action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/action.yml b/action.yml index fe0da7f..375cdae 100644 --- a/action.yml +++ b/action.yml @@ -18,11 +18,17 @@ inputs: default: 'full-release' required: true + working-directory: + required: true + default: ${{ github.workspace }} + description: 'The directory to change into.' + runs: using: 'composite' steps: - name: 'Download JReleaser' shell: bash + working-directory: ${{ inputs.working-directory }} run: | echo "::group::📦 Download JReleaser" java "${{ github.action_path }}/copy.java" ${{ inputs.version }} @@ -31,6 +37,7 @@ runs: - name: 'Execute JReleaser' shell: bash + working-directory: ${{ inputs.working-directory }} run: | echo "☕ java -jar jreleaser-cli.jar ${{ inputs.arguments }}" java -jar jreleaser-cli.jar ${{ inputs.arguments }}