Skip to content

Commit

Permalink
Merge pull request RasaHQ#7957 from RasaHQ/fix_tag_latest
Browse files Browse the repository at this point in the history
Fix tagging the latest stable version as latest
  • Loading branch information
Tomasz Czekajlo committed Feb 15, 2021
2 parents 4abc498 + 5cb070f commit 2e62472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/continous-integration.yml
Expand Up @@ -333,7 +333,7 @@ jobs:
# Fetch branch history
git fetch --prune --unshallow
LATEST_TAGGED_NON_ALPHA_RASA_VERSION=$(git tag | sort -r -V | grep -E "^[0-9.]+$" | head -n1)
CURRENT_TAG=${GITHUB_TAG/refs\/tags\//}
CURRENT_TAG=${GITHUB_REF#refs/tags/}
# Return 'true' if tag version is equal or higher than the latest tagged Rasa version
IS_NEWEST_VERSION=$((printf '%s\n%s\n' "${LATEST_TAGGED_NON_ALPHA_RASA_VERSION}" "$CURRENT_TAG" \
| sort -V -C && echo true || echo false) || true)
Expand Down

0 comments on commit 2e62472

Please sign in to comment.