Skip to content

Commit

Permalink
fix: correct if branch to create tags
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Sep 13, 2022
1 parent 975be14 commit 5ebb61a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
create-major-minor-tags:
description: Create major/minor tags automatically on release (e.g. v1, v1.1)
required: false
default: false
default: 'false'
prerelease:
description: Create a pre-release (e.g. v1.0.0-0)
required: false
Expand Down Expand Up @@ -86,7 +86,7 @@ runs:
- name: 🏷️ Tag major and minor versions
shell: bash
if: ${{ inputs.create-major-minor-tags && steps.release-please.outputs.release_created && !inputs.prerelease }}
if: ${{ inputs.create-major-minor-tags == 'true' && steps.release-please.outputs.release_created == 'true' && inputs.prerelease != 'true' }}
run: |
echo "deleting existing tags, if any"
git tag -d v${{ steps.release-please.outputs.major }} || true
Expand Down

0 comments on commit 5ebb61a

Please sign in to comment.