Skip to content

Commit

Permalink
Merge pull request #22 from Food-fusion-Fiap/update-tags
Browse files Browse the repository at this point in the history
update latest tag
  • Loading branch information
CAVAh authored Jul 15, 2024
2 parents f78309b + a443622 commit 5857577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ jobs:
- name: Calculate next tag
id: tagger
run: |
TAG=$(git describe --abbrev=0 --tags)
LATEST_TAG=$TAG
LATEST_TAG=$(git tag --sort=-v:refname | head -n 1)
echo "Last tag: $LATEST_TAG"
if [[ "$LATEST_TAG" =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
major="${BASH_REMATCH[1]}"
minor="${BASH_REMATCH[2]}"
Expand Down

0 comments on commit 5857577

Please sign in to comment.