Skip to content

Commit

Permalink
Add directory input
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragos Dumitrache committed Jan 17, 2024
1 parent 9117ccb commit 7c3a1a4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion versioner/action.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand All @@ -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)
Expand Down

0 comments on commit 7c3a1a4

Please sign in to comment.