Skip to content

Commit

Permalink
Properly fixing make tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed May 18, 2024
1 parent eeeef92 commit 16e9997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ prod: node_modules gems ## Build production assets and start in prod m


tag: ## Tag this main with the .version
@/usr/bin/env bash -c "git tag | grep -q $(TAG) && { echo 'Tag $(TAG) is already assigned.'; exit 1; }"
@/usr/bin/env bash -c "if [[ $(BRANCH) != main ]]; then echo 'Must be on the main branch'; else echo git tag -f $(TAG); echo git push --tags --force; fi"
@/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) != main ]]; then echo 'Must be on the main branch'; else git tag -f '$(TAG)'; git push --tags --force; fi"

0 comments on commit 16e9997

Please sign in to comment.