Skip to content

Commit

Permalink
Revert temporary release changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrn authored May 3, 2024
1 parent 2f387ca commit 3eb7f3b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tools/get-marketplace-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
# we opted for number of seconds passed between last tag and last commit. This
# should generate 0 for tagged commits and other numbers for pull requests.
set -Ee
#LAST_TAG=$(git describe --tags --abbrev=0)
#LAST_TAG_TIMESTAMP=$(git -P log -1 --format=%ct "${LAST_TAG}")
#LAST_COMMIT_TIMESTAMP=$(git -P show --no-patch --format=%ct HEAD)
#VERSION_SUFFIX="$((LAST_COMMIT_TIMESTAMP-LAST_TAG_TIMESTAMP))"
LAST_TAG=$(git describe --tags --abbrev=0)
LAST_TAG_TIMESTAMP=$(git -P log -1 --format=%ct "${LAST_TAG}")
LAST_COMMIT_TIMESTAMP=$(git -P show --no-patch --format=%ct HEAD)
VERSION_SUFFIX="$((LAST_COMMIT_TIMESTAMP-LAST_TAG_TIMESTAMP))"
# We remove the last number from the node reported version.
VERSION_PREFIX=$(node -p "require('./package.json').version")
VERSION_SUFFIX=3000000
echo -n "${VERSION_PREFIX%.*}.${VERSION_SUFFIX}"

0 comments on commit 3eb7f3b

Please sign in to comment.