From 7c3a1a49e5f241b1f122dbfc6dc64a8c9015884e Mon Sep 17 00:00:00 2001 From: Dragos Dumitrache Date: Wed, 17 Jan 2024 10:46:15 +0000 Subject: [PATCH] Add directory input --- versioner/action.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/versioner/action.yml b/versioner/action.yml index a4cb882..9d675a3 100644 --- a/versioner/action.yml +++ b/versioner/action.yml @@ -1,6 +1,10 @@ name: 'versioner' description: 'Git Tag versioning' +inputs: + directory: + description: "The working directory to run this in" + default: ${{ github.workspace }} outputs: version: value: ${{ steps.semver.outputs.version }} @@ -13,9 +17,13 @@ runs: repository: DragosDumitrache/versioner ref: 2.2.5 path: tools + - name: Move tools to global directory + shell: bash + run: | + sudo mv ./tools/ /tools - name: Generate and tag a new version id: semver - working-directory: ${{ github.workspace }} + working-directory: ${{ inputs.directory }} shell: bash run: | version_tag=$(./tools/version.sh)