From e292c95ced2505e9d78de207b634cf3464a4bf9d Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 9 Jan 2023 20:34:43 -0700 Subject: [PATCH] Update action.yml --- action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index f37f1ed..9b9c2b6 100644 --- a/action.yml +++ b/action.yml @@ -4,8 +4,12 @@ author: tj-actions inputs: version: description: 'Version to bump to. (Default: the diff between the current tag and the previous tag)' - required: true + required: false default: '' + working-directory: + description: 'Working directory' + required: false + default: '.' runs: using: 'composite' @@ -26,6 +30,7 @@ runs: - name: Bump Cargo.toml version shell: bash if: steps.semver-diff.outputs.release_type != '' || inputs.version != '' + working-directory: ${{ inputs.working-directory }} run: | if [[ -z "${{ inputs.version }}" ]]; then cargo bump ${{ steps.semver-diff.outputs.release_type }}