Skip to content

Commit

Permalink
Add tag-update
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed Jun 30, 2024
1 parent 15cc70e commit 5d8fb4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ tag: ## Tag with the latest .version
@/usr/bin/env bash -c "git tag | grep -q '$(TAG)' && { echo 'Tag $(TAG) is already assigned.'; exit 1; } || true"
@/usr/bin/env bash -c "if [[ $(BRANCH) != master ]]; then echo 'Must be on the main branch'; else git tag -f '$(TAG)'; git push --tags --force; fi"

tag-update: ## Re-tag latest codebase with the existing version
@/usr/bin/env bash -c "if [[ $(BRANCH) != master ]]; then echo 'Must be on the main branch'; else git tag -f '$(TAG)'; git push --tags --force; fi"

0 comments on commit 5d8fb4f

Please sign in to comment.