mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-24 17:32:13 +03:00
24 lines
472 B
Bash
Executable File
24 lines
472 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [[ -z "${BUILD_SOURCEVERSION}" ]]; then
|
|
|
|
npm install -g checksum
|
|
|
|
vscodium_hash=$( git rev-parse HEAD )
|
|
|
|
cd vscode
|
|
vscode_hash=$( git rev-parse HEAD )
|
|
cd ..
|
|
|
|
export BUILD_SOURCEVERSION=$( echo "${vscodium_hash}:${vscode_hash}" | checksum )
|
|
|
|
echo "Build version: ${BUILD_SOURCEVERSION}"
|
|
|
|
# for GH actions
|
|
if [[ $GITHUB_ENV ]]; then
|
|
echo "BUILD_SOURCEVERSION=$BUILD_SOURCEVERSION" >> $GITHUB_ENV
|
|
fi
|
|
fi
|