Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Jan 10, 2023
1 parent 4cd0bfd commit e292c95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 }}
Expand Down

0 comments on commit e292c95

Please sign in to comment.