mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2025-02-17 03:48:25 +00:00
8 lines
276 B
Bash
Executable file
8 lines
276 B
Bash
Executable file
# get commit hash
|
|
rev=$(git rev-parse --short HEAD 2>&1)
|
|
# Export to env as well, for the artifact
|
|
export AppRev=$(git rev-parse --short HEAD 2>&1)
|
|
# Get git root directory
|
|
root=$(git rev-parse --show-toplevel 2>&1)
|
|
# Save to version file
|
|
echo "$rev" > "$root/public/version"
|