Skip to content

Commit

Permalink
Merge pull request #29509 from appsmithorg/cp/version
Browse files Browse the repository at this point in the history
chore: Cherry pick #29508
  • Loading branch information
sharat87 authored Dec 11, 2023
2 parents 2d82aa2 + 713af77 commit 24166dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_info_json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ commit_sha="$(git rev-parse HEAD)"
base_url="$(git remote get-url origin | sed 's,^git@github\.com:,https://github.com/,; s/\.git$//')"

if [[ "${GITHUB_REF-}" =~ ^refs/tags/v ]]; then
version="${GITHUB_REF#refs/tags/v}"
version="${GITHUB_REF#refs/tags/}"
else
latest_released_version="$(git ls-remote --tags --sort=-v:refname "$(git remote | head -1)" 'v*' | awk -F/ '{print $NF; exit}')"
echo "latest_released_version = $latest_released_version" >&2
Expand Down

0 comments on commit 24166dd

Please sign in to comment.