1
0
mirror of https://github.com/element-hq/element-web.git synced 2026-10-24 23:19:26 +03:00
Files
element-web/scripts/get-version-from-git.sh
Michael Telatynski 3fd20b83a6 Update dependency @element-hq/element-call-embedded to v0.26.0 (#35142) (#35147)
* Update dependency @element-hq/element-call-embedded to v0.26.0 (#35142)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit 0aaefe97f2)

# Conflicts:
#	pnpm-lock.yaml

* Attempt to fix get-version-from-git.sh for staging CI

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-23 11:47:27 +00:00

19 lines
672 B
Bash
Executable File

#!/usr/bin/env bash
# Echoes a version based on the git hashes of the element-web & js-sdk checkouts, for the case where
# these dependencies are git checkouts.
set -e
SCRIPT_DIR=$(dirname "$0")
if [ -d "$SCRIPT_DIR/../matrix-js-sdk" ]; then
# layered.sh clones matrix-js-sdk directly into <root>/matrix-js-sdk.
JSSDK_SHA=$(git -C "$SCRIPT_DIR/../matrix-js-sdk" rev-parse --short=12 HEAD)
else
# fallback to reading the package.json
JSSDK_SHA=$(jq -r '.dependencies["matrix-js-sdk"]' "$SCRIPT_DIR/../apps/web/package.json")
fi
VECTOR_SHA=$(git rev-parse --short=12 HEAD) # use the ACTUAL SHA rather than assume develop
echo "$VECTOR_SHA-js-$JSSDK_SHA"